fix null char* case, reported by Daniel Moore
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9078 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
f61ae5e91c
commit
20e425f31b
1 changed files with 1 additions and 1 deletions
|
|
@ -506,7 +506,7 @@
|
|||
SWIGINTERNINLINE SWIG_Object
|
||||
SWIG_From##CharName##Ptr(const Char *cptr)
|
||||
{
|
||||
return SWIG_FromCharPtrAndSize(cptr, (cptr ? SWIG_CharPtrLen(cptr) + 1: 0));
|
||||
return SWIG_FromCharPtrAndSize(cptr, (cptr ? SWIG_CharPtrLen(cptr) : 0));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue