summaryrefslogtreecommitdiff
path: root/main/cli.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/cli.c')
-rw-r--r--main/cli.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/main/cli.c b/main/cli.c
index 8459ea35d..f07d8b015 100644
--- a/main/cli.c
+++ b/main/cli.c
@@ -1835,7 +1835,9 @@ static char *__ast_cli_generator(const char *text, const char *word, int state,
struct ast_cli_args a = {
.line = matchstr, .word = word,
.pos = argindex,
- .n = state - matchnum };
+ .n = state - matchnum,
+ .argv = argv,
+ .argc = x};
ret = e->handler(e, CLI_GENERATE, &a);
}
if (ret)