]> granicus.if.org Git - php/commitdiff
Be safe, use ().
authorAndrei Zmievski <andrei@php.net>
Mon, 18 Oct 1999 14:17:36 +0000 (14:17 +0000)
committerAndrei Zmievski <andrei@php.net>
Mon, 18 Oct 1999 14:17:36 +0000 (14:17 +0000)
Zend/zend_API.h

index 401148d7ea6ea11e60f7ce6ba694564e74559e04..347f3dae4f894f9fcdc54baa503dabf9616f8e6e 100644 (file)
@@ -252,15 +252,15 @@ ZEND_API int add_property_stringl(zval *arg, char *key, char *str, uint length,
                                                                                                                                                                                                                \
                if (zend_hash_find(symtable, (name), (name_length), (void **) &orig_var)==SUCCESS                               \
                        && PZVAL_IS_REF(*orig_var)) {                                                                                                                           \
-                       var->refcount = (*orig_var)->refcount;                                                                                                          \
-                       var->is_ref = 1;                                                                                                                                                        \
+                       (var)->refcount = (*orig_var)->refcount;                                                                                                                \
+                       (var)->is_ref = 1;                                                                                                                                                      \
                                                                                                                                                                                                                \
                        zval_dtor(*orig_var);                                                                                                                                           \
-                       **orig_var = *var;                                                                                                                                                      \
+                       **orig_var = *(var);                                                                                                                                                    \
                        efree(var);                                                                                                                                                                     \
                } else {                                                                                                                                                                                \
-                       INIT_PZVAL(var);                                                                                                                                                        \
-                       zend_hash_update(symtable, (name), (name_length), &var, sizeof(zval *), NULL);                          \
+                       INIT_PZVAL((var));                                                                                                                                                      \
+                       zend_hash_update(symtable, (name), (name_length), &(var), sizeof(zval *), NULL);                                \
                }                                                                                                                                                                                               \
        }