From c09b63595ef7edcaae6638932dceae531c26c3cf Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Fri, 12 Apr 2019 11:20:29 +0200 Subject: Fix potentially uninitialized warnings in phpdbg --- sapi/phpdbg/phpdbg_wait.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sapi/phpdbg/phpdbg_wait.c') diff --git a/sapi/phpdbg/phpdbg_wait.c b/sapi/phpdbg/phpdbg_wait.c index de0ecbe59f..738b4669f2 100644 --- a/sapi/phpdbg/phpdbg_wait.c +++ b/sapi/phpdbg/phpdbg_wait.c @@ -243,7 +243,7 @@ void phpdbg_webdata_decompress(char *msg, int len) { zend_extension *extension; zend_llist_position pos; zval *name = NULL; - zend_string *strkey; + zend_string *strkey = NULL; extension = (zend_extension *) zend_llist_get_first_ex(&zend_extensions, &pos); while (extension) { @@ -257,6 +257,7 @@ void phpdbg_webdata_decompress(char *msg, int len) { break; } name = NULL; + strkey = NULL; } ZEND_HASH_FOREACH_END(); if (name) { @@ -283,6 +284,7 @@ void phpdbg_webdata_decompress(char *msg, int len) { pefree(elm, zend_extensions.persistent); zend_extensions.count--; } else { + ZEND_ASSERT(strkey); zend_hash_del(Z_ARRVAL_P(zvp), strkey); } } -- cgit v1.2.1