Fixed #1634 (Null character not correctly tokenized)

This commit is contained in:
Eric Sesterhenn 2010-04-29 18:30:23 +02:00 committed by Daniel Marjamäki
parent c79b9a8aac
commit b261e5df25
1 changed files with 1 additions and 1 deletions

View File

@ -2991,7 +2991,7 @@ bool Tokenizer::simplifyTokenList()
// Replace NULL with 0..
for (Token *tok = _tokens; tok; tok = tok->next())
{
if (tok->str() == "NULL" || tok->str() == "'\\0'")
if (tok->str() == "NULL" || tok->str() == "'\\0'" || tok->str() == "'\\x0'")
{
tok->str("0");
}