We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09a66a7 commit 7e599abCopy full SHA for 7e599ab
lib/checknullpointer.cpp
@@ -268,7 +268,7 @@ static bool isNullablePointer(const Token* tok)
268
if (Token::simpleMatch(tok, "new") && tok->varId() == 0)
269
return false;
270
const Variable* var = tok->variable();
271
- if (astIsPointer(tok)/* && !(var && var->isArray())*/)
+ if (astIsPointer(tok) && !(var && var->isArray()))
272
return true;
273
if (astIsSmartPointer(tok))
274
0 commit comments