From 083af88801863a113461a282bdf7cc3a5a6d6f40 Mon Sep 17 00:00:00 2001 From: Martin Ettl Date: Fri, 1 Nov 2013 00:18:13 +0100 Subject: [PATCH] Checkio: removed redundant NULL-pointer check, introduced by me. --- lib/checkio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkio.cpp b/lib/checkio.cpp index 20fa0cfec..50721987c 100644 --- a/lib/checkio.cpp +++ b/lib/checkio.cpp @@ -417,7 +417,7 @@ static bool findFormat(unsigned int arg, const Token *firstArg, *formatStringTok = argTok; return true; } else if (Token::Match(argTok, "%var% [,)]") && - (argTok && argTok->variable() && + (argTok->variable() && Token::Match(argTok->variable()->typeStartToken(), "char|wchar_t") && (argTok->variable()->isPointer() || (argTok->variable()->dimensions().size() == 1 &&