Fixed seg-fault with arrays.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@811 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
4db681110d
commit
df6cbfac91
1 changed files with 2 additions and 1 deletions
|
|
@ -427,7 +427,8 @@ char *Swig_typemap_lookup(char *op, SwigType *type, String_or_char *pname, Strin
|
|||
for (i = 0; i < ndim; i++) {
|
||||
DOHString *dim = SwigType_array_getdim(type,i);
|
||||
sprintf(temp,"$dim%d",i);
|
||||
Replace(f->locals,temp,dim, DOH_REPLACE_ANY);
|
||||
if (f)
|
||||
Replace(f->locals,temp,dim, DOH_REPLACE_ANY);
|
||||
Replace(s,temp,dim,DOH_REPLACE_ANY);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue