[Asterisk-code-review] CLI: Fix 'core set debug channel' completion bug. (asterisk[13])

Corey Farrell asteriskteam at digium.com
Mon Dec 18 12:36:03 CST 2017


Corey Farrell has uploaded this change for review. ( https://gerrit.asterisk.org/7627


Change subject: CLI: Fix 'core set debug channel' completion bug.
......................................................................

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
---
M main/cli.c
1 file changed, 2 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/27/7627/1

diff --git a/main/cli.c b/main/cli.c
index 8e0cc3b..7039b72 100644
--- a/main/cli.c
+++ b/main/cli.c
@@ -1418,6 +1418,8 @@
 		} else if (a->pos == 5) {
 			return ast_cli_complete(a->word, completions_off, a->n);
 		}
+
+		return NULL;
 	}
 
 	if (cmd == (CLI_HANDLER + 1000)) {

-- 
To view, visit https://gerrit.asterisk.org/7627
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibf6462088a74eee66967732b50445783ebefc20b
Gerrit-Change-Number: 7627
Gerrit-PatchSet: 1
Gerrit-Owner: Corey Farrell <git at cfware.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20171218/5cb16815/attachment.html>


More information about the asterisk-code-review mailing list