From d39097f52a61ae5072183f3649b81d9608ed3df6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 16 Jan 2016 14:15:51 +0100 Subject: [PATCH] Removed redundant null pointer check --- lib/checkmemoryleak.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkmemoryleak.cpp b/lib/checkmemoryleak.cpp index 4fe75b444..355d37939 100644 --- a/lib/checkmemoryleak.cpp +++ b/lib/checkmemoryleak.cpp @@ -213,7 +213,7 @@ CheckMemoryLeak::AllocType CheckMemoryLeak::getDeallocationType(const Token *tok } } - if (tok && tok->str() == "::") + if (tok->str() == "::") tok = tok->next(); if (Token::Match(tok, "%name% (")) {