From 382520ee9f72eebf03733537ab801a5961ead896 Mon Sep 17 00:00:00 2001 From: Reijo Tomperi Date: Sun, 26 Jun 2011 22:46:33 +0300 Subject: [PATCH] Fix #2840, False positive: Null pointer dereference http://sourceforge.net/apps/trac/cppcheck/ticket/2840 --- lib/checknullpointer.cpp | 4 +++- test/testnullpointer.cpp | 20 ++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/lib/checknullpointer.cpp b/lib/checknullpointer.cpp index a2e5abe62..5a60e99ae 100644 --- a/lib/checknullpointer.cpp +++ b/lib/checknullpointer.cpp @@ -103,7 +103,9 @@ void CheckNullPointer::parseFunctionCall(const Token &tok, std::list