Navigation Menu

Skip to content

Commit

Permalink
mysql56: use 0 instead of NULL for memset()
Browse files Browse the repository at this point in the history
Because memset() writes a byte value not pointer value.
  • Loading branch information
kou committed Dec 26, 2012
1 parent 3b45315 commit 37f7ccb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ha_mroonga.cpp
Expand Up @@ -12176,8 +12176,8 @@ bool ha_mroonga::wrapper_inplace_alter_table(
uint *key_parser_length;
KEY *p_key_info = &table->key_info[table_share->primary_key];
bool need_fill_index = FALSE;
memset(index_tables, NULL, sizeof(grn_obj *) * ha_alter_info->key_count);
memset(index_columns, NULL, sizeof(grn_obj *) * ha_alter_info->key_count);
memset(index_tables, 0, sizeof(grn_obj *) * ha_alter_info->key_count);
memset(index_columns, 0, sizeof(grn_obj *) * ha_alter_info->key_count);
tmp_table_share.keys = ha_alter_info->key_count;
if (!(tmp_share = (MRN_SHARE *)
my_multi_malloc(MYF(MY_WME | MY_ZEROFILL),
Expand Down Expand Up @@ -12326,8 +12326,8 @@ bool ha_mroonga::storage_inplace_alter_table(
uint *key_parser_length;
KEY *p_key_info = &table->key_info[table_share->primary_key];
bool have_multiple_column_index = FALSE;
memset(index_tables, NULL, sizeof(grn_obj *) * ha_alter_info->key_count);
memset(index_columns, NULL, sizeof(grn_obj *) * ha_alter_info->key_count);
memset(index_tables, 0, sizeof(grn_obj *) * ha_alter_info->key_count);
memset(index_columns, 0, sizeof(grn_obj *) * ha_alter_info->key_count);
tmp_table_share.keys = ha_alter_info->key_count;
if (!(tmp_share = (MRN_SHARE *)
my_multi_malloc(MYF(MY_WME | MY_ZEROFILL),
Expand Down

0 comments on commit 37f7ccb

Please sign in to comment.