]> granicus.if.org Git - php/commitdiff
Removed useless initializations
authorDmitry Stogov <dmitry@zend.com>
Mon, 26 May 2014 07:42:58 +0000 (11:42 +0400)
committerDmitry Stogov <dmitry@zend.com>
Mon, 26 May 2014 07:42:58 +0000 (11:42 +0400)
Zend/zend_hash.c

index ee1dcb2501af24f84cda97690cfb48fed4688095..b598b8efb1582696302a128bfa38fdbc5b417575 100644 (file)
@@ -1099,8 +1099,6 @@ ZEND_API void zend_array_dup(HashTable *target, HashTable *source)
                                p = source->arData + idx;
                                q = target->arData + idx;
                                if (Z_TYPE(p->val) == IS_UNDEF) {
-                                       q->h = 0;
-                                       q->key = NULL;
                                        ZVAL_UNDEF(&q->val);
                                        continue;
                                }
@@ -1109,8 +1107,6 @@ ZEND_API void zend_array_dup(HashTable *target, HashTable *source)
                                if (Z_TYPE_P(data) == IS_INDIRECT) {
                                        data = Z_INDIRECT_P(data);
                                        if (Z_TYPE_P(data) == IS_UNDEF) {
-                                               q->h = 0;
-                                               q->key = NULL;
                                                ZVAL_UNDEF(&q->val);
                                                continue;
                                        }