Fixed initial creation of array in t_output_helper.

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

View file

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