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

Corey Farrell asteriskteam at digium.com
Mon Dec 18 12:35:28 CST 2017


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


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/25/7625/1

diff --git a/main/cli.c b/main/cli.c
index 75846b8..207d1f8 100644
--- a/main/cli.c
+++ b/main/cli.c
@@ -1391,6 +1391,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/7625
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibf6462088a74eee66967732b50445783ebefc20b
Gerrit-Change-Number: 7625
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/7b0e0ac1/attachment.html>


More information about the asterisk-code-review mailing list