Fixed #1152 (Hang/Slow: ExecutionPath handling hangs)
This commit is contained in:
parent
9819b75e17
commit
ad8184f060
|
@ -98,7 +98,7 @@ static const Token *checkExecutionPaths_(const Token *tok, std::list<ExecutionPa
|
|||
tok = tok->next();
|
||||
|
||||
// parse condition
|
||||
if (check->parseCondition(*tok->next(), checks))
|
||||
if (checks.size() > 10 || check->parseCondition(*tok->next(), checks))
|
||||
{
|
||||
while (!checks.empty())
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue