summaryrefslogtreecommitdiff
path: root/sapi
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2016-10-27 02:15:14 +0200
committerAnatol Belski <ab@php.net>2016-10-27 02:15:14 +0200
commitb9993c8b6c159c55515938dc09d25ed47ffe4649 (patch)
tree9356c4697108554356d8c375dd9b54bcd7275edc /sapi
parent3fb0a1a4e75f1049afe6f6950a4b7171b81ba8b0 (diff)
downloadphp-git-b9993c8b6c159c55515938dc09d25ed47ffe4649.tar.gz
fix uninitialized pointer
Diffstat (limited to 'sapi')
-rw-r--r--sapi/phpdbg/phpdbg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sapi/phpdbg/phpdbg.c b/sapi/phpdbg/phpdbg.c
index de73c69ee7..eb58b90a47 100644
--- a/sapi/phpdbg/phpdbg.c
+++ b/sapi/phpdbg/phpdbg.c
@@ -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) /* {{{ */