]> granicus.if.org Git - php/commitdiff
avoid memory error
authorkrakjoe <joe.watkins@live.co.uk>
Tue, 19 Nov 2013 19:36:39 +0000 (19:36 +0000)
committerkrakjoe <joe.watkins@live.co.uk>
Tue, 19 Nov 2013 19:36:39 +0000 (19:36 +0000)
phpdbg_cmd.c

index f65b9bedae99ee2564ea5a4330399fb29497b4bc..227e65932834513c721f87decac13e5a110826f3 100644 (file)
@@ -201,6 +201,9 @@ static inline phpdbg_input_t** phpdbg_read_argv(char *buffer, int *argc TSRMLS_D
        if ((*argc) == 0) {
                /* not needed */
                efree(argv);
+               
+               /* to be sure */
+               return NULL;
        }
        
        return argv;