Checkio: removed redundant NULL-pointer check, introduced by me.

This commit is contained in:
Martin Ettl 2013-11-01 00:18:13 +01:00
parent ac3b1c0611
commit 083af88801
1 changed files with 1 additions and 1 deletions

View File

@ -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 &&