Fix filename completion for "module load" and "load" CLI commands.
authorJason Parker <jparker@digium.com>
Thu, 18 Jan 2007 19:03:25 +0000 (19:03 +0000)
committerJason Parker <jparker@digium.com>
Thu, 18 Jan 2007 19:03:25 +0000 (19:03 +0000)
Issue 8846

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51249 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/cli.c

index 54dea49..342e840 100644 (file)
@@ -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);
        }