[Groonga-mysql-commit] mroonga/mroonga at ec53cb2 [master] Fix using uninitialized value at adding index.

Back to archive index

shibakentoku null+****@clear*****
Wed Nov 27 03:31:03 JST 2013


shibakentoku	2013-11-27 03:31:03 +0900 (Wed, 27 Nov 2013)

  New Revision: ec53cb2697b1146c25cfff21d11c205155c24a4e
  https://github.com/mroonga/mroonga/commit/ec53cb2697b1146c25cfff21d11c205155c24a4e

  Message:
    Fix using uninitialized value at adding index.

  Modified files:
    ha_mroonga.cpp

  Modified: ha_mroonga.cpp (+2 -0)
===================================================================
--- ha_mroonga.cpp    2013-11-27 03:29:20 +0900 (64517aa)
+++ ha_mroonga.cpp    2013-11-27 03:31:03 +0900 (8a47906)
@@ -13375,6 +13375,7 @@ int ha_mroonga::wrapper_add_index(TABLE *table_arg, KEY *key_info,
   }
   KEY *p_key_info = &table->key_info[table_share->primary_key], *tmp_key_info;
   tmp_table_share.keys = n_keys + num_of_keys;
+  tmp_table_share.fields = 0;
   if (!(tmp_share = (MRN_SHARE *)
     my_multi_malloc(MYF(MY_WME | MY_ZEROFILL),
       &tmp_share, sizeof(*tmp_share),
@@ -13508,6 +13509,7 @@ int ha_mroonga::storage_add_index(TABLE *table_arg, KEY *key_info,
 
   MRN_DBUG_ENTER_METHOD();
   tmp_table_share.keys = n_keys + num_of_keys;
+  tmp_table_share.fields = 0;
   if (!(tmp_share = (MRN_SHARE *)
     my_multi_malloc(MYF(MY_WME | MY_ZEROFILL),
       &tmp_share, sizeof(*tmp_share),
-------------- next part --------------
HTML����������������������������...
下載 



More information about the Groonga-mysql-commit mailing list
Back to archive index