]> granicus.if.org Git - php/commitdiff
Initialize last_line in phpdbg globals
authorNikita Popov <nikita.ppv@gmail.com>
Mon, 1 Jul 2019 14:13:50 +0000 (16:13 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Mon, 1 Jul 2019 14:14:45 +0000 (16:14 +0200)
sapi/phpdbg/phpdbg.c

index 67cefc75f23ab97caf186ee11b8aa92d496f8614..1f4cb29a4fb6bee00b416123e7ac81c02c959d1b 100644 (file)
@@ -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) /* {{{ */