Skip to content

Commit 6f55ad2

Browse files
committed
Fix [-Wmaybe-uninitialized] warnings
1 parent d2f234f commit 6f55ad2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Zend/zend_execute.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2651,7 +2651,7 @@ static zend_always_inline void zend_fetch_property_address(zval *result, zval *c
26512651
{
26522652
zval *ptr;
26532653
zend_object *zobj;
2654-
zend_string *name, *tmp_name;
2654+
zend_string *name, *tmp_name = NULL;
26552655

26562656
if (container_op_type != IS_UNUSED && UNEXPECTED(Z_TYPE_P(container) != IS_OBJECT)) {
26572657
do {

ext/mysqlnd/mysqlnd_result.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1768,7 +1768,7 @@ MYSQLND_METHOD(mysqlnd_res, fetch_into)(MYSQLND_RES * result, const unsigned int
17681768
static MYSQLND_ROW_C
17691769
MYSQLND_METHOD(mysqlnd_res, fetch_row_c)(MYSQLND_RES * result)
17701770
{
1771-
zend_bool fetched_anything;
1771+
zend_bool fetched_anything = 0;
17721772
MYSQLND_ROW_C ret = NULL;
17731773
DBG_ENTER("mysqlnd_res::fetch_row_c");
17741774

0 commit comments

Comments
 (0)