fixed segmentation fault

This commit is contained in:
Daniel Marjamäki 2009-08-25 17:54:04 +02:00
parent c25e1963b1
commit 9569f758f8
1 changed files with 1 additions and 1 deletions

View File

@ -2880,7 +2880,7 @@ bool Tokenizer::simplifyKnownVariables()
bailOutFromLoop = tok3->link();
continue;
}
else if (tok3->str() == "}" && tok3->link()->previous()->str() == ")")
else if (tok3->str() == "}" && tok3->link() && tok3->link()->previous()->str() == ")")
{
// Assignment was in the middle of possible loop, bail out.
break;