Tokenizer: Fixed possible NULL pointer dereference

This commit is contained in:
Daniel Marjamäki 2012-09-01 10:11:18 +02:00
parent a8d419820b
commit 15bc552b37
1 changed files with 2 additions and 0 deletions

View File

@ -4191,6 +4191,8 @@ void Tokenizer::simplifyConditionOperator()
tok = tok2; tok = tok2;
while (tok && tok->str() != ";") while (tok && tok->str() != ";")
tok->deleteThis(); tok->deleteThis();
if (!tok)
break;
} }
} }
} }