Checkio: removed redundant NULL-pointer check, introduced by me.
This commit is contained in:
parent
ac3b1c0611
commit
083af88801
|
@ -417,7 +417,7 @@ static bool findFormat(unsigned int arg, const Token *firstArg,
|
||||||
*formatStringTok = argTok;
|
*formatStringTok = argTok;
|
||||||
return true;
|
return true;
|
||||||
} else if (Token::Match(argTok, "%var% [,)]") &&
|
} else if (Token::Match(argTok, "%var% [,)]") &&
|
||||||
(argTok && argTok->variable() &&
|
(argTok->variable() &&
|
||||||
Token::Match(argTok->variable()->typeStartToken(), "char|wchar_t") &&
|
Token::Match(argTok->variable()->typeStartToken(), "char|wchar_t") &&
|
||||||
(argTok->variable()->isPointer() ||
|
(argTok->variable()->isPointer() ||
|
||||||
(argTok->variable()->dimensions().size() == 1 &&
|
(argTok->variable()->dimensions().size() == 1 &&
|
||||||
|
|
Loading…
Reference in New Issue