summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/phpdbg.c
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-07-01 16:13:50 +0200
committerNikita Popov <nikita.ppv@gmail.com>2019-07-01 16:14:45 +0200
commitaf3e2d3186874e12c0a66f1c3e46ec08399f0818 (patch)
treeff73531a4c817c2f1930f329003bfdcc36523687 /sapi/phpdbg/phpdbg.c
parentf2b6b2eee89385e5b7733203b21794d026abf2b7 (diff)
downloadphp-git-af3e2d3186874e12c0a66f1c3e46ec08399f0818.tar.gz
Initialize last_line in phpdbg globals
Diffstat (limited to 'sapi/phpdbg/phpdbg.c')
-rw-r--r--sapi/phpdbg/phpdbg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sapi/phpdbg/phpdbg.c b/sapi/phpdbg/phpdbg.c
index 67cefc75f2..1f4cb29a4f 100644
--- a/sapi/phpdbg/phpdbg.c
+++ b/sapi/phpdbg/phpdbg.c
@@ -181,6 +181,7 @@ static inline void php_phpdbg_globals_ctor(zend_phpdbg_globals *pg) /* {{{ */
pg->stdin_file = NULL;
pg->cur_command = NULL;
+ pg->last_line = 0;
} /* }}} */
static PHP_MINIT_FUNCTION(phpdbg) /* {{{ */