diff options
| author | Sunny Kumar <sunkumar@redhat.com> | 2018-08-25 15:07:02 +0530 |
|---|---|---|
| committer | gluster-ant <bugzilla-bot@gluster.org> | 2018-08-25 15:07:02 +0530 |
| commit | 5bcfea1afdb6f7b19dd14372bcae2c367c9b3c93 (patch) | |
| tree | 2a5b205f7d8183e2fb0ae06260e33c2bc26d1184 /cli/src | |
| parent | ace97cecee16924a04c27b4ca6293fec4a9c6615 (diff) | |
cli : fix coverity cli-rl.c
This fixes new coverity issue introduced by commit 5acb74d7da.
Fixes 1395188.
Change-Id: I629e5f214150672e309abb2fc58f55f1f58d8fb7
updates: bz#789278
Signed-off-by: Sunny Kumar <sunkumar@redhat.com>
Diffstat (limited to 'cli/src')
| -rw-r--r-- | cli/src/cli-rl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/src/cli-rl.c b/cli/src/cli-rl.c index 215fbebb99..4ddb2ab149 100644 --- a/cli/src/cli-rl.c +++ b/cli/src/cli-rl.c @@ -295,7 +295,7 @@ cli_rl_autocomplete_prepare (struct cli_state *state, const char *text) if (!word) goto out; - if (!tokens) + if (!token) return 0; matches = cli_rl_get_matches (state, word, token); |
