Fixed initial creation of array in t_output_helper.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7901 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Kevin Ruland 2005-11-29 15:29:30 +00:00
commit a77971ae39

View file

@ -48,7 +48,8 @@ t_output_helper( zval **target, zval *o) {
return;
}
zval *tmp;
tmp = *target;
ALLOC_INIT_ZVAL(tmp);
*tmp = **target;
zval_copy_ctor(tmp);
array_init(*target);
add_next_index_zval( *target, tmp);