]> granicus.if.org Git - php/commitdiff
yet another uninitialized pointer
authorAnatol Belski <ab@php.net>
Thu, 27 Oct 2016 00:40:30 +0000 (02:40 +0200)
committerAnatol Belski <ab@php.net>
Thu, 27 Oct 2016 00:42:30 +0000 (02:42 +0200)
sapi/phpdbg/phpdbg.c

index eb58b90a47da5c90b886fcff5839141239e20914..d2de0c2e3002d722c0069d60540c78bb665486b6 100644 (file)
@@ -121,6 +121,8 @@ static inline void php_phpdbg_globals_ctor(zend_phpdbg_globals *pg) /* {{{ */
        pg->eol = PHPDBG_EOL_LF;
 
        pg->stdin_file = NULL;
+
+       pg->cur_command = NULL;
 } /* }}} */
 
 static PHP_MINIT_FUNCTION(phpdbg) /* {{{ */