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
This commit is contained in:
Jason Parker
2007-01-18 19:03:25 +00:00
parent 0e8bd82efe
commit 7f58759deb

View File

@@ -120,7 +120,7 @@ static char *handle_load(struct ast_cli_entry *e, int cmd, struct ast_cli_args *
return NULL; return NULL;
case CLI_GENERATE: case CLI_GENERATE:
if (a->argc != e->args + 1) if (a->pos != e->args)
return NULL; return NULL;
return complete_fn(a->word, a->n); return complete_fn(a->word, a->n);
} }