fix bug in previous commit that fixed #485

This commit is contained in:
Daniel Marjamäki 2009-07-20 19:10:33 +02:00
parent b7ba49114c
commit 324f12a103
1 changed files with 3 additions and 0 deletions

View File

@ -1031,6 +1031,9 @@ void CheckOther::nullPointer()
if (Token::Match(tok1, "%var% . %var%"))
{
const unsigned int varid1(tok1->varId());
if (varid1 == 0)
continue;
unsigned int indentlevel2 = 0;
for (const Token *tok2 = tok1->tokAt(3); tok2; tok2 = tok2->next())
{