]> granicus.if.org Git - php/commitdiff
joined identical conditional blocks
authorAnatol Belski <ab@php.net>
Sat, 15 Nov 2014 12:12:25 +0000 (13:12 +0100)
committerAnatol Belski <ab@php.net>
Tue, 18 Nov 2014 12:19:46 +0000 (13:19 +0100)
Zend/zend_hash.c

index 5577194b0c796fbba5aaf9c6b07468df0d41082b..24be94f0d98ba7a2c3657c430e764a890d0b6ec8 100644 (file)
@@ -1697,8 +1697,7 @@ ZEND_API int zend_hash_sort(HashTable *ht, sort_func_t sort_func,
                                p->key = NULL;
                        }
                }
-       }
-       if (renumber) {
+
                ht->nNextFreeElement = i;
        }
        if (ht->u.flags & HASH_FLAG_PACKED) {