[Groonga-mysql-commit] mroonga/mroonga at c52f9ff [master] Clear allocated memory

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Apr 14 10:48:38 JST 2015


Kouhei Sutou	2015-04-14 10:48:38 +0900 (Tue, 14 Apr 2015)

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

  Message:
    Clear allocated memory

  Modified files:
    ha_mroonga.cpp

  Modified: ha_mroonga.cpp (+1 -0)
===================================================================
--- ha_mroonga.cpp    2015-04-14 10:46:35 +0900 (ecb1976)
+++ ha_mroonga.cpp    2015-04-14 10:48:38 +0900 (6077b09)
@@ -9490,6 +9490,7 @@ void ha_mroonga::check_fast_order_limit(grn_table_sort_key **sort_keys,
     size_t sort_keys_size = sizeof(grn_table_sort_key) * n_max_sort_keys;
     *sort_keys = (grn_table_sort_key *)mrn_my_malloc(sort_keys_size,
                                                      MYF(MY_WME));
+    memset(*sort_keys, 0, sort_keys_size);
     ORDER *order;
     int i;
     mrn_change_encoding(ctx, system_charset_info);
-------------- next part --------------
HTML����������������������������...
Download 



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