diff options
author | Sunny Kumar <sunkumar@redhat.com> | 2018-08-25 15:07:02 +0530 |
---|---|---|
committer | Atin Mukherjee <amukherj@redhat.com> | 2018-08-27 02:43:14 +0000 |
commit | 57da742b13c85b5671be2638d7c9d1d31c5c93bb (patch) | |
tree | 2a5b205f7d8183e2fb0ae06260e33c2bc26d1184 /cli/src/cli-rl.c | |
parent | d34455a2d2d267c545c25ad7fa710ae2677d5afb (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/cli-rl.c')
-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 215fbebb998..4ddb2ab149f 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); |