Remove pointless conversion from UNDEF to NULL

This commit is contained in:
Niels Dossche 2024-12-29 14:46:31 +01:00
parent caafa041d9
commit e21de85b9f

View file

@ -268,7 +268,7 @@ long_dim:
} }
} }
ZVAL_UNDEF(rv); ZVAL_NULL(rv);
if (node) { if (node) {
if (attribs) { if (attribs) {
@ -338,10 +338,6 @@ long_dim:
zval_ptr_dtor_str(&tmp_zv); zval_ptr_dtor_str(&tmp_zv);
} }
if (Z_ISUNDEF_P(rv)) {
ZVAL_NULL(rv);
}
return rv; return rv;
} }
/* }}} */ /* }}} */