Fixed #1634 (Null character not correctly tokenized)
This commit is contained in:
parent
c79b9a8aac
commit
b261e5df25
|
@ -2991,7 +2991,7 @@ bool Tokenizer::simplifyTokenList()
|
||||||
// Replace NULL with 0..
|
// Replace NULL with 0..
|
||||||
for (Token *tok = _tokens; tok; tok = tok->next())
|
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");
|
tok->str("0");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue