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:
parent
a168aad6aa
commit
ba954bf280
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue