check for null pointer in inString to prevent segfaults
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12929 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
1ca411b423
commit
266ab63924
1 changed files with 1 additions and 1 deletions
|
|
@ -784,7 +784,7 @@ int DohIsString(const DOH *obj) {
|
|||
if (!DohCheck(b))
|
||||
return 0;
|
||||
objinfo = b->type;
|
||||
if (objinfo->doh_string)
|
||||
if (objinfo && objinfo->doh_string)
|
||||
return 1;
|
||||
else
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue