Avoid mutually exclusive checks

This commit is contained in:
Dmitry-Me 2014-08-18 14:30:52 +04:00
parent 3251aa912b
commit a386fbb665
1 changed files with 2 additions and 3 deletions

View File

@ -412,13 +412,12 @@ void ExecutionPath::checkScope(const Token *tok, std::list<ExecutionPath *> &che
// parse next "if"..
tok = tok->tokAt(2);
if (tok && tok->str() == "if")
continue;
if (!tok) {
ExecutionPath::bailOut(newchecks);
return;
}
if (tok->str() == "if")
continue;
// there is no "if"..
ExecutionPath::checkScope(tok->next(), checks);