Fix another CLI command so it doesn't run the real code when called for initialization.
authorRussell Bryant <russell@russellbryant.com>
Wed, 7 Nov 2007 00:16:03 +0000 (00:16 +0000)
committerRussell Bryant <russell@russellbryant.com>
Wed, 7 Nov 2007 00:16:03 +0000 (00:16 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89076 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/astmm.c

index 099f125..fd0b3d6 100644 (file)
@@ -391,7 +391,7 @@ static char *handle_memory_show_summary(struct ast_cli_entry *e, int cmd, struct
                        "Usage: memory show summary [<file>]\n"
                        "       Summarizes heap memory allocations by file, or optionally\n"
                        "by function, if a file is specified\n";
-               break;
+               return NULL;
        case CLI_GENERATE:
                return NULL;
        }