From: Jason Parker Date: Thu, 18 Jan 2007 19:03:25 +0000 (+0000) Subject: Fix filename completion for "module load" and "load" CLI commands. X-Git-Tag: 1.6.0-beta1~3^2~3439 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7f58759debed110704ee0328a101ee650f8fb5ab;p=thirdparty%2Fasterisk.git Fix filename completion for "module load" and "load" CLI commands. Issue 8846 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51249 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/cli.c b/main/cli.c index 54dea496c9..342e840a89 100644 --- a/main/cli.c +++ b/main/cli.c @@ -120,7 +120,7 @@ static char *handle_load(struct ast_cli_entry *e, int cmd, struct ast_cli_args * return NULL; case CLI_GENERATE: - if (a->argc != e->args + 1) + if (a->pos != e->args) return NULL; return complete_fn(a->word, a->n); }