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:
PKEuS 2012-08-26 10:41:48 +02:00
parent 6893948c72
commit 839f7a32a4
1 changed files with 0 additions and 2 deletions

View File

@ -104,8 +104,6 @@ void CheckNullPointer::parseFunctionCall(const Token &tok, std::list<const Token
functionNames1_all.insert("mktime"); functionNames1_all.insert("mktime");
functionNames1_nullptr.insert("itoa"); functionNames1_nullptr.insert("itoa");
functionNames1_nullptr.insert("mbstowcs");
functionNames1_nullptr.insert("wcstombs");
functionNames1_nullptr.insert("memcpy"); functionNames1_nullptr.insert("memcpy");
functionNames1_nullptr.insert("memmove"); functionNames1_nullptr.insert("memmove");
functionNames1_nullptr.insert("memset"); functionNames1_nullptr.insert("memset");