Kouhei Sutou
null+****@clear*****
Fri Aug 22 23:16:01 JST 2014
Kouhei Sutou 2014-08-22 23:16:01 +0900 (Fri, 22 Aug 2014) New Revision: fa951ca1e365d397b58767fc996ed372ad2078d6 https://github.com/mroonga/mroonga/commit/fa951ca1e365d397b58767fc996ed372ad2078d6 Message: Add NULL check Modified files: ha_mroonga.cpp Modified: ha_mroonga.cpp (+1 -1) =================================================================== --- ha_mroonga.cpp 2014-08-22 23:13:10 +0900 (8646d74) +++ ha_mroonga.cpp 2014-08-22 23:16:01 +0900 (9ef8674) @@ -8535,7 +8535,7 @@ int ha_mroonga::drop_index(MRN_SHARE *target_share, uint key_index) int target_name_length; KEY *key_info = target_share->table_share->key_info; - if (target_share->index_table[key_index]) { + if (target_share->index_table && target_share->index_table[key_index]) { const char *table_name = target_share->index_table[key_index]; snprintf(target_name, GRN_TABLE_MAX_KEY_SIZE, "%s.%s", table_name, key_info[key_index].name); -------------- next part -------------- HTML����������������������������... Download