diff --git a/lib/checkbufferoverrun.cpp b/lib/checkbufferoverrun.cpp index c0ae2a669..474edf02f 100644 --- a/lib/checkbufferoverrun.cpp +++ b/lib/checkbufferoverrun.cpp @@ -1147,7 +1147,7 @@ void CheckBufferOverrun::checkGlobalAndLocalVariable() for (const Token *tok = scope->classStart; tok != scope->classEnd; tok = tok->next()) { // if the previous token exists, it must be either a variable name or "[;{}]" - if (tok->previous() && (!tok->previous()->isName() && !Token::Match(tok->previous(), "[;{}]"))) + if (tok->previous() && !tok->previous()->isName() && !Token::Match(tok->previous(), "[;{}]")) continue; // size : Max array index