forked from qt-creator/qt-creator
C++: Fix potential null pointer dereference
Change-Id: I38d99b27ff76f44535c02c64886bede0a99c6225 Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
2
src/libs/3rdparty/cplusplus/Matcher.cpp
vendored
2
src/libs/3rdparty/cplusplus/Matcher.cpp
vendored
@@ -47,7 +47,7 @@ bool Matcher::match(const Type *type, const Type *otherType, Matcher *matcher)
|
|||||||
{
|
{
|
||||||
if (type == otherType)
|
if (type == otherType)
|
||||||
return true;
|
return true;
|
||||||
if (!type)
|
if (!type || !otherType)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return type->match0(otherType, matcher);
|
return type->match0(otherType, matcher);
|
||||||
|
|||||||
Reference in New Issue
Block a user