Fixed #1152 (Hang/Slow: ExecutionPath handling hangs)

This commit is contained in:
Daniel Marjamäki 2009-12-26 08:37:07 +01:00
parent 9819b75e17
commit ad8184f060
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ static const Token *checkExecutionPaths_(const Token *tok, std::list<ExecutionPa
tok = tok->next(); tok = tok->next();
// parse condition // parse condition
if (check->parseCondition(*tok->next(), checks)) if (checks.size() > 10 || check->parseCondition(*tok->next(), checks))
{ {
while (!checks.empty()) while (!checks.empty())
{ {