]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix another bug in "core set debug" ...
authorRussell Bryant <russell@russellbryant.com>
Sat, 4 Nov 2006 18:10:22 +0000 (18:10 +0000)
committerRussell Bryant <russell@russellbryant.com>
Sat, 4 Nov 2006 18:10:22 +0000 (18:10 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@47196 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/cli.c

index 64ee53bea66d80c50b8c1c81820d015dd461302a..a955d99812e579ccec3b20e1275b3e119c7a806d 100644 (file)
@@ -298,7 +298,7 @@ static int handle_debug(int fd, int argc, char *argv[])
                if (sscanf(argv[4], "%d", &newlevel) != 1)
                        return RESULT_SHOWUSAGE;
 
-               if (argc == 4) {
+               if (argc == 6) {
                        debug_filename[0] = '\0';
                } else {
                        filename = argv[4];