CheckOther::nullConstantDereference: Fixed cppcheck warning message - tok may become null

This commit is contained in:
Daniel Marjamäki 2010-06-02 18:06:37 +02:00
parent 28ad69e4b3
commit 8ead23fc91
1 changed files with 2 additions and 0 deletions

View File

@ -2235,6 +2235,8 @@ void CheckOther::nullConstantDereference()
tok = tok->link();
tok = tok->next();
}
if (!tok)
break;
}
else if (Token::simpleMatch(tok, "* 0"))