From 324f12a103fe7752e5a8b5915bfc0b1cf548a229 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Mon, 20 Jul 2009 19:10:33 +0200 Subject: [PATCH] fix bug in previous commit that fixed #485 --- src/checkother.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/checkother.cpp b/src/checkother.cpp index 87c57c7cc..886b40f1b 100644 --- a/src/checkother.cpp +++ b/src/checkother.cpp @@ -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()) {