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

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