fix def value difference between T_POINTER and T_STRING
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6670 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
523c3c6e73
commit
dc3b6659f5
1 changed files with 1 additions and 1 deletions
|
|
@ -185,7 +185,7 @@ int Swig_cargs(Wrapper *w, ParmList *p) {
|
|||
Delete(defname);
|
||||
Delete(defvalue);
|
||||
}
|
||||
} else if (!pvalue && (tycode == T_POINTER)) {
|
||||
} else if (!pvalue && ((tycode == T_POINTER) || (tycode == T_STRING))) {
|
||||
pvalue = (String *) "0";
|
||||
}
|
||||
if (!altty) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue