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:
parent
0c7bc36122
commit
0f0172bc0d
1 changed files with 3 additions and 1 deletions
|
|
@ -3669,7 +3669,9 @@ private:
|
||||||
bool inProxyModule(const String *type_name) const {
|
bool inProxyModule(const String *type_name) const {
|
||||||
if (!split_proxy_dmodule) {
|
if (!split_proxy_dmodule) {
|
||||||
String *nspace = createOuterNamespaceNames(type_name);
|
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);
|
Delete(nspace);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue