small fix to previous commit

This commit is contained in:
Reijo Tomperi 2009-12-06 22:32:38 +02:00
parent fc40808a8a
commit e57d9609a7
1 changed files with 2 additions and 0 deletions

View File

@ -1546,8 +1546,10 @@ static const Token *checkExecutionPaths(const Token *tok, std::list<ExecutionPat
it = checks.erase(it);
}
else
{
++it;
}
}
if (checks.empty())
return 0;
else if (foundError)