Resolve CID 1037101. break after loop if tok is null because tok is dereferenced below. Ticket: #6055

This commit is contained in:
Dmitry-Me 2014-08-15 18:39:15 +02:00 committed by Daniel Marjamäki
parent 364c975701
commit e91a63c834
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}
}