1
0
mirror of https://github.com/php/php-src.git synced 2026-04-05 07:02:33 +02:00

Remove useless condition

This commit is contained in:
Xinchen Hui
2014-10-03 18:35:05 +08:00
parent f248b17e07
commit 54bad8bf57

View File

@@ -1217,14 +1217,13 @@ static zend_always_inline void zend_fetch_dimension_address_read(zval *result, z
} else {
retval = Z_OBJ_HT_P(container)->read_dimension(container, dim, type, result TSRMLS_CC);
if (result) {
if (retval) {
if (result != retval) {
ZVAL_COPY(result, retval);
}
} else {
ZVAL_NULL(result);
ZEND_ASSERT(result != NULL);
if (retval) {
if (result != retval) {
ZVAL_COPY(result, retval);
}
} else {
ZVAL_NULL(result);
}
}
} else {