From af3e2d3186874e12c0a66f1c3e46ec08399f0818 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Mon, 1 Jul 2019 16:13:50 +0200 Subject: Initialize last_line in phpdbg globals --- sapi/phpdbg/phpdbg.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sapi/phpdbg/phpdbg.c') 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) /* {{{ */ -- cgit v1.2.1