Fixing a segfault from tab-completing a "zap restart" CLI command.
authorMark Michelson <mmichelson@digium.com>
Thu, 18 Oct 2007 18:40:48 +0000 (18:40 +0000)
committerMark Michelson <mmichelson@digium.com>
Thu, 18 Oct 2007 18:40:48 +0000 (18:40 +0000)
(patch made by seanbright, pointed out in #asterisk-dev on IRC)

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

channels/chan_zap.c

index 4aa0daa..20ae5a3 100644 (file)
@@ -10891,6 +10891,8 @@ static char *zap_restart_cmd(struct ast_cli_entry *e, int cmd, struct ast_cli_ar
                        "       Note that this will STOP any running CALL on zaptel channels.\n"
                        "";
                return NULL;
+       case CLI_GENERATE:
+               return NULL;
        }
        if (a->argc != 2)
                return CLI_SHOWUSAGE;