Tokenizer: Fixed possible NULL pointer dereference
This commit is contained in:
parent
a8d419820b
commit
15bc552b37
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue