Fixed #5469 (CheckBufferOverrun: Use nullptr)
This commit is contained in:
parent
940582645d
commit
a41a32ba8a
|
@ -1878,9 +1878,9 @@ void CheckBufferOverrun::checkSprintfCall(const Token *tok, const MathLib::bigin
|
|||
parameters.push_back(vaArg);
|
||||
|
||||
else
|
||||
parameters.push_back(0);
|
||||
parameters.push_back(nullptr);
|
||||
} else // Parameter is more complex than just a value or variable. Ignore it for now and skip to next token.
|
||||
parameters.push_back(0);
|
||||
parameters.push_back(nullptr);
|
||||
|
||||
vaArg = vaArg->nextArgument();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue