From db929ffd19a63bed65390176534ece63e5cc2770 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 7 Sep 2014 13:50:55 +0200 Subject: [PATCH] Fixed CID 1037074. Useless null pointer check. Created ticket #6144. --- lib/tokenize.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index 0ee16f359..2de18f0fe 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -2354,8 +2354,8 @@ static void setVarIdStructMembers(Token **tok1, tok->varId(members[tok->str()]); } } - if (tok) - *tok1 = tok; + // tok can't be null + *tok1 = tok; }