com php-src: fix uninitialized pointer: sapi/phpdbg/phpdbg.c
| From: | Anatol Belski | Date: | Thu, 27 Oct 2016 00:15:14 +0000 |
| Subject: | com php-src: fix uninitialized pointer: sapi/phpdbg/phpdbg.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-95300@lists.php.net to get a copy of this message | ||
Commit: b9993c8b6c159c55515938dc09d25ed47ffe4649
Author: Anatol Belski <ab@php.net> Thu, 27 Oct 2016 02:15:14 +0200
Parents: 3fb0a1a4e75f1049afe6f6950a4b7171b81ba8b0
Branches: PHP-7.0 PHP-7.1 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=b9993c8b6c159c55515938dc09d25ed47ffe4649
Log:
fix uninitialized pointer
Changed paths:
M sapi/phpdbg/phpdbg.c
Diff:
diff --git a/sapi/phpdbg/phpdbg.c b/sapi/phpdbg/phpdbg.c
index de73c69..eb58b90 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) /* {{{ */