mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Fixes to eliminate valgrind warnings.
This commit is contained in:
@ -65,10 +65,14 @@ public:
|
||||
m_field_metadata(0), m_null_bits(0), m_memory(NULL)
|
||||
{
|
||||
m_memory= (uchar *)my_multi_malloc(MYF(MY_WME),
|
||||
&m_type, size,
|
||||
&m_field_metadata, size * sizeof(short),
|
||||
&m_null_bits, (m_size + 7) / 8,
|
||||
NULL);
|
||||
&m_type, size,
|
||||
&m_field_metadata,
|
||||
size * sizeof(uint16),
|
||||
&m_null_bits, (size + 7) / 8,
|
||||
NULL);
|
||||
|
||||
bzero(m_field_metadata, size * sizeof(uint16));
|
||||
|
||||
if (m_type)
|
||||
memcpy(m_type, types, size);
|
||||
else
|
||||
|
Reference in New Issue
Block a user