Use MAKE_STD_ZVAL instead of ALLOC_ZVAL

This commit is contained in:
Adam Dickmeiss 2004-03-15 10:01:12 +00:00
parent 633c95aa40
commit 9a04d51b4a

View File

@ -868,9 +868,8 @@ static void retval_array2_grs1(zval *return_value, Z_GenericRecord *p)
zval *zval_sub;
Z_TaggedElement *e = p->elements[i];
ALLOC_ZVAL(zval_element);
MAKE_STD_ZVAL(zval_element);
array_init(zval_element);
INIT_PZVAL(zval_element);
if (e->tagType)
add_assoc_long(zval_element, "tagType", *e->tagType);
@ -891,7 +890,7 @@ static void retval_array2_grs1(zval *return_value, Z_GenericRecord *p)
add_assoc_bool(zval_element, "content",*e->content->u.trueOrFalse);
break;
case Z_ElementData_subtree:
ALLOC_ZVAL(zval_sub);
MAKE_STD_ZVAL(zval_sub);
retval_array2_grs1(zval_sub, e->content->u.subtree);
add_assoc_zval(zval_element, "content", zval_sub);
}