summaryrefslogtreecommitdiffstats
path: root/cli/src/cli-rl.c
diff options
context:
space:
mode:
Diffstat (limited to 'cli/src/cli-rl.c')
-rw-r--r--cli/src/cli-rl.c2
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);