From 57da742b13c85b5671be2638d7c9d1d31c5c93bb Mon Sep 17 00:00:00 2001 From: Sunny Kumar Date: Sat, 25 Aug 2018 15:07:02 +0530 Subject: 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 --- cli/src/cli-rl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit