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:
Marcelo Matus 2004-11-05 01:41:07 +00:00
commit dc3b6659f5

View file

@ -185,7 +185,7 @@ int Swig_cargs(Wrapper *w, ParmList *p) {
Delete(defname); Delete(defname);
Delete(defvalue); Delete(defvalue);
} }
} else if (!pvalue && (tycode == T_POINTER)) { } else if (!pvalue && ((tycode == T_POINTER) || (tycode == T_STRING))) {
pvalue = (String *) "0"; pvalue = (String *) "0";
} }
if (!altty) { if (!altty) {