Skip to content

Commit 7e599ab

Browse files
Update checknullpointer.cpp
1 parent 09a66a7 commit 7e599ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/checknullpointer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ static bool isNullablePointer(const Token* tok)
268268
if (Token::simpleMatch(tok, "new") && tok->varId() == 0)
269269
return false;
270270
const Variable* var = tok->variable();
271-
if (astIsPointer(tok)/* && !(var && var->isArray())*/)
271+
if (astIsPointer(tok) && !(var && var->isArray()))
272272
return true;
273273
if (astIsSmartPointer(tok))
274274
return true;

0 commit comments

Comments
 (0)