com php-src: Removed useless initializations: Zend/zend_hash .c
| From: | Dmitry Stogov | Date: | Mon, 26 May 2014 07:42:58 +0000 |
| Subject: | com php-src: Removed useless initializations: Zend/zend_hash .c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-78541@lists.php.net to get a copy of this message | ||
Commit: b66728aabbe4f2cb94b6f04a7ca2456d7a8a0b71
Author: Dmitry Stogov <dmitry@zend.com> Mon, 26 May 2014 11:42:58 +0400
Parents: 79a3e44a0c6592b582c488c17143a65c7978fafe
Branches: phpng
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=b66728aabbe4f2cb94b6f04a7ca2456d7a8a0b71
Log:
Removed useless initializations
Changed paths:
M Zend/zend_hash.c
Diff:
diff --git a/Zend/zend_hash.c b/Zend/zend_hash.c
index ee1dcb2..b598b8e 100644
--- a/Zend/zend_hash.c
+++ b/Zend/zend_hash.c
@@ -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;
}