tokenizer: fix segmentation fault if end of token list is reached

This commit is contained in:
Daniel Marjamäki 2009-03-27 15:12:49 +01:00
parent 7afccc395a
commit 4eeac1f364
1 changed files with 4 additions and 0 deletions

View File

@ -641,6 +641,10 @@ void Tokenizer::setVarId()
tok2 = tok2->next();
}
// End of tokens reached..
if (!tok2)
break;
// Is it a function?
if (tok2->str() == "(")
{