aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xasterisk.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/asterisk.c b/asterisk.c
index a003093c6..bc743be86 100755
--- a/asterisk.c
+++ b/asterisk.c
@@ -1102,6 +1102,7 @@ static char *cli_complete(EditLine *el, int ch)
snprintf(buf, sizeof(buf),"_COMMAND MATCHESARRAY \"%s\" \"%s\"", lf->buffer, ptr);
fdprint(ast_consock, buf);
res = 0;
+ mbuf[0] = '\0';
while (!strstr(mbuf, AST_CLI_COMPLETE_EOF) && res != -1) {
if (mlen + 1024 > maxmbuf) {
/* Every step increment buffer 1024 bytes */