Fixed possible nullptr dereference warning

This commit is contained in:
PKEuS 2013-03-01 03:53:47 -08:00
parent 0105f8223c
commit bf9aa102f2
1 changed files with 1 additions and 1 deletions

View File

@ -8587,7 +8587,7 @@ void Tokenizer::simplifyKeyword()
if (_settings->standards.c >= Standards::C99) {
for (Token *tok = list.front(); tok; tok = tok->next()) {
while (tok && tok->str() == "restrict") {
while (tok->str() == "restrict") {
tok->deleteThis();
}
}