C++: Fix potential null pointer dereference

Change-Id: I38d99b27ff76f44535c02c64886bede0a99c6225
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
Nikolai Kosjar
2014-05-15 15:02:38 -04:00
parent fffb3d4d58
commit 194591da98

View File

@@ -47,7 +47,7 @@ bool Matcher::match(const Type *type, const Type *otherType, Matcher *matcher)
{
if (type == otherType)
return true;
if (!type)
if (!type || !otherType)
return false;
return type->match0(otherType, matcher);