]> granicus.if.org Git - php/commitdiff
no need to init zval - assignment will init
authorStanislav Malyshev <stas@php.net>
Mon, 16 Jun 2003 15:43:40 +0000 (15:43 +0000)
committerStanislav Malyshev <stas@php.net>
Mon, 16 Jun 2003 15:43:40 +0000 (15:43 +0000)
Zend/zend_execute.c

index 29c57a90bf92d34a0b240409635d5caade01a53c..830d59f3591557769f7b1e3ea6d520fff1141a2e 100644 (file)
@@ -475,7 +475,7 @@ static inline void zend_assign_to_variable(znode *result, znode *op1, znode *op2
                                                                                STR_FREE(value->value.str.val);
                                                                        } else {
                                                                                /* We are going to use return value, make it real zval */
-                                                                               ALLOC_INIT_ZVAL(value);
+                                                                               ALLOC_ZVAL(value);
                                                                                *value = T(op2->u.var).tmp_var;
                                                                                value->is_ref = 0;
                                                                                value->refcount = 0; /* LOCK will increase it */