Resolve CID 1037101. break after loop if tok is null because tok is dereferenced below. Ticket: #6055
This commit is contained in:
parent
364c975701
commit
e91a63c834
|
@ -317,6 +317,8 @@ void ExecutionPath::checkScope(const Token *tok, std::list<ExecutionPath *> &che
|
|||
if (tok->varId())
|
||||
ExecutionPath::bailOutVar(checks, tok->varId());
|
||||
}
|
||||
if (!tok)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue