From: Dmitry Stogov Date: Mon, 20 Mar 2006 15:13:41 +0000 (+0000) Subject: Removed unreachable code X-Git-Tag: php-5.1.3RC2~76 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=608c3207a6dc97b1d0aacf7441a25ce3d62aad7b;p=php Removed unreachable code --- diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index a967fe2f12..b4d4a03139 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -2940,13 +2940,7 @@ void zend_do_declare_class_constant(znode *var_name, znode *value TSRMLS_DC) } ALLOC_ZVAL(property); - - if (value) { - *property = value->u.constant; - } else { - INIT_PZVAL(property); - property->type = IS_NULL; - } + *property = value->u.constant; if (zend_hash_add(&CG(active_class_entry)->constants_table, var_name->u.constant.value.str.val, var_name->u.constant.value.str.len+1, &property, sizeof(zval *), NULL)==FAILURE) { FREE_ZVAL(property);