Skip to content

Commit 6e8db20

Browse files
committed
Fix potentially uninit var
1 parent 8e01d6e commit 6e8db20

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Zend/zend_object_handlers.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1049,13 +1049,13 @@ ZEND_API zval *zend_std_write_property(zend_object *zobj, zend_string *name, zva
10491049
uintptr_t property_offset;
10501050
const zend_property_info *prop_info = NULL;
10511051
uint32_t *guard = NULL;
1052+
zend_property_write_kind prop_write_kind = ZEND_PROPERTY_WRITE_OK;
10521053
ZEND_ASSERT(!Z_ISREF_P(value));
10531054

10541055
property_offset = zend_get_property_offset(zobj->ce, name, (zobj->ce->__set != NULL), cache_slot, &prop_info);
10551056

10561057
if (EXPECTED(IS_VALID_PROPERTY_OFFSET(property_offset))) {
1057-
try_again:;
1058-
zend_property_write_kind prop_write_kind = ZEND_PROPERTY_WRITE_OK;
1058+
try_again:
10591059
variable_ptr = OBJ_PROP(zobj, property_offset);
10601060

10611061
if (prop_info && UNEXPECTED(prop_info->flags & (ZEND_ACC_READONLY|ZEND_ACC_PPP_SET_MASK))) {

0 commit comments

Comments
 (0)