fix null pointer dereference found by clang++ --analyze
This commit is contained in:
parent
0b8581e717
commit
c457179ce6
|
@ -920,7 +920,7 @@ void SymbolDatabase::addFunction(Scope **scope, const Token **tok, const Token *
|
|||
if (func->hasBody)
|
||||
{
|
||||
addNewFunction(scope, tok);
|
||||
if (scope)
|
||||
if (*scope)
|
||||
{
|
||||
(*scope)->functionOf = scope1;
|
||||
added = true;
|
||||
|
|
Loading…
Reference in New Issue