From b4be71aa4e89dfaae224619b93ea3ea4fa912c20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Wed, 1 Dec 2010 18:05:57 +0100 Subject: [PATCH] checkuninitvar: fixed possible null-pointer dereference. thanks orbitcowboy for spotting it. --- lib/checkuninitvar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkuninitvar.cpp b/lib/checkuninitvar.cpp index ba3f99f08..e61b0075d 100644 --- a/lib/checkuninitvar.cpp +++ b/lib/checkuninitvar.cpp @@ -391,7 +391,7 @@ private: else break; } - if (tok3->strAt(1) == "=") + if (tok3 && tok3->strAt(1) == "=") continue; } bool foundError;