revert objinfo fix. If objinfo is null then we have

a malformed DOH and things should crash


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12946 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Joseph Wang 2012-03-23 15:23:47 +00:00
commit f67509e154

View file

@ -784,7 +784,7 @@ int DohIsString(const DOH *obj) {
if (!DohCheck(b))
return 0;
objinfo = b->type;
if (objinfo && objinfo->doh_string)
if (objinfo->doh_string)
return 1;
else
return 0;