summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorey Farrell <git@cfware.com>2017-12-18 13:23:46 -0500
committerCorey Farrell <git@cfware.com>2017-12-18 12:36:03 -0600
commit5cdc65cf1e83274b90cf0410f1174eac2b277296 (patch)
tree498acb86a02f8274497abbab0791c074c66f5b89
parent9867219329a441d5713b17606382524392641e3f (diff)
CLI: Fix 'core set debug channel' completion bug.
The completion generator is missing a return so typing "core set debug all off <tab>" causes the command to actually execute. Change-Id: Ibf6462088a74eee66967732b50445783ebefc20b
-rw-r--r--main/cli.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/cli.c b/main/cli.c
index 8e0cc3bd3..7039b72fc 100644
--- a/main/cli.c
+++ b/main/cli.c
@@ -1418,6 +1418,8 @@ static char *handle_core_set_debug_channel(struct ast_cli_entry *e, int cmd, str
} else if (a->pos == 5) {
return ast_cli_complete(a->word, completions_off, a->n);
}
+
+ return NULL;
}
if (cmd == (CLI_HANDLER + 1000)) {