Fix MSVS analyzer warnings about int multiplication overflow and
uninitialized member variables.

See https://github.com/wxWidgets/wxWidgets/pull/1606
This commit is contained in:
Vadim Zeitlin
2019-10-15 22:50:17 +02:00
11 changed files with 20 additions and 10 deletions

View File

@@ -3374,7 +3374,7 @@ private:
{
// notice that there is no need to initialize m_len here as it's unused
// as long as m_str is NULL
ConvertedBuffer() : m_str(NULL) {}
ConvertedBuffer() : m_str(NULL), m_len(0) {}
~ConvertedBuffer()
{ free(m_str); }