]> granicus.if.org Git - php/commitdiff
Remove dead assignment in get_property_guard
authorNikita Popov <nikic@php.net>
Thu, 1 Oct 2015 14:28:28 +0000 (16:28 +0200)
committerNikita Popov <nikic@php.net>
Thu, 1 Oct 2015 14:28:28 +0000 (16:28 +0200)
Zend/zend_object_handlers.c

index 8587a82c8da13d9d2e04ce153bf6012d973d5e7a..7c4b6a679a694b8dda28b285abb68981cfd95be8 100644 (file)
@@ -494,7 +494,6 @@ static zend_long *zend_get_property_guard(zend_object *zobj, zend_string *member
 {
        HashTable *guards;
        zend_long stub, *guard;
-       zval tmp;
 
        ZEND_ASSERT(GC_FLAGS(zobj) & IS_OBJ_USE_GUARDS);
        if (GC_FLAGS(zobj) & IS_OBJ_HAS_GUARDS) {
@@ -506,7 +505,6 @@ static zend_long *zend_get_property_guard(zend_object *zobj, zend_string *member
        } else {
                ALLOC_HASHTABLE(guards);
                zend_hash_init(guards, 8, NULL, zend_property_guard_dtor, 0);
-               ZVAL_PTR(&tmp, guards);
                Z_PTR(zobj->properties_table[zobj->ce->default_properties_count]) = guards;
                GC_FLAGS(zobj) |= IS_OBJ_HAS_GUARDS;
        }