Fix possible NULL dereference

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13915 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2012-11-19 19:48:50 +00:00
commit 0f0172bc0d

View file

@ -3669,7 +3669,9 @@ private:
bool inProxyModule(const String *type_name) const {
if (!split_proxy_dmodule) {
String *nspace = createOuterNamespaceNames(type_name);
bool result = (getNSpace() || !nspace) && (Strcmp(nspace, getNSpace()) == 0);
bool result = false;
if (getNSpace() && nspace)
result = (Strcmp(nspace, getNSpace()) == 0);
Delete(nspace);
return result;
}