Skip to content

Commit a41a32b

Browse files
committed
Fixed cppcheck-opensource#5469 (CheckBufferOverrun: Use nullptr)
1 parent 9405826 commit a41a32b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/checkbufferoverrun.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1878,9 +1878,9 @@ void CheckBufferOverrun::checkSprintfCall(const Token *tok, const MathLib::bigin
18781878
parameters.push_back(vaArg);
18791879

18801880
else
1881-
parameters.push_back(0);
1881+
parameters.push_back(nullptr);
18821882
} else // Parameter is more complex than just a value or variable. Ignore it for now and skip to next token.
1883-
parameters.push_back(0);
1883+
parameters.push_back(nullptr);
18841884

18851885
vaArg = vaArg->nextArgument();
18861886
}

0 commit comments

Comments
 (0)