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