It is ok to pass a nullpointer as first argument to mbstowcs and wcstombs, which then just return how long the buffer has to be to store the result.
This commit is contained in:
parent
6893948c72
commit
839f7a32a4
|
@ -104,8 +104,6 @@ void CheckNullPointer::parseFunctionCall(const Token &tok, std::list<const Token
|
|||
functionNames1_all.insert("mktime");
|
||||
|
||||
functionNames1_nullptr.insert("itoa");
|
||||
functionNames1_nullptr.insert("mbstowcs");
|
||||
functionNames1_nullptr.insert("wcstombs");
|
||||
functionNames1_nullptr.insert("memcpy");
|
||||
functionNames1_nullptr.insert("memmove");
|
||||
functionNames1_nullptr.insert("memset");
|
||||
|
|
Loading…
Reference in New Issue