tokenizer: fix segmentation fault if end of token list is reached
This commit is contained in:
parent
7afccc395a
commit
4eeac1f364
|
@ -641,6 +641,10 @@ void Tokenizer::setVarId()
|
|||
tok2 = tok2->next();
|
||||
}
|
||||
|
||||
// End of tokens reached..
|
||||
if (!tok2)
|
||||
break;
|
||||
|
||||
// Is it a function?
|
||||
if (tok2->str() == "(")
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue