mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
#190 zero out new null bytes to force valgrind to quit complaining about uninitialized bytes
This commit is contained in:
parent
a0cd739ae2
commit
35762b4368
1 changed files with 2 additions and 1 deletions
|
@ -512,7 +512,6 @@ static int tokudb_hcad_update_fun(
|
|||
old_null_bytes = (uchar *)old_val->data;
|
||||
new_null_bytes = new_val_data;
|
||||
|
||||
|
||||
memcpy(&curr_old_null_pos, extra_pos, sizeof(uint32_t));
|
||||
extra_pos += sizeof(uint32_t);
|
||||
memcpy(&curr_new_null_pos, extra_pos, sizeof(uint32_t));
|
||||
|
@ -521,6 +520,8 @@ static int tokudb_hcad_update_fun(
|
|||
memcpy(&num_columns, extra_pos, sizeof(num_columns));
|
||||
extra_pos += sizeof(num_columns);
|
||||
|
||||
memset(new_null_bytes, 0, new_num_null_bytes); // shut valgrind up
|
||||
|
||||
//
|
||||
// now go through and apply the change into new_val_data
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue