[Groonga-commit] groonga/groonga at 707b523 [master] Add NULL check

Back to archive index

Naoya Murakami null+****@clear*****
Wed Dec 28 17:00:04 JST 2016


Naoya Murakami	2016-12-28 17:00:04 +0900 (Wed, 28 Dec 2016)

  New Revision: 707b5234bf77ebe35390a0977e6d87a9c72d2ed7
  https://github.com/groonga/groonga/commit/707b5234bf77ebe35390a0977e6d87a9c72d2ed7

  Merged 2f0f6ca: Merge pull request #619 from naoa/fix-bug-ii-set-min

  Message:
    Add NULL check

  Modified files:
    lib/ii.c

  Modified: lib/ii.c (+5 -3)
===================================================================
--- lib/ii.c    2016-12-28 16:18:51 +0900 (0e3835b)
+++ lib/ii.c    2016-12-28 17:00:04 +0900 (0167a8b)
@@ -7802,9 +7802,11 @@ grn_ii_select(grn_ctx *ctx, grn_ii *ii,
     } else if (optarg->vector_size) {
       wvm = optarg->weight_vector ? grn_wv_static : grn_wv_constant;
     }
-    if (optarg->match_info->flags & GRN_MATCH_INFO_GET_MIN_RECORD_ID) {
-      previous_min = optarg->match_info->min;
-      set_min_enable_for_and_query = GRN_TRUE;
+    if (optarg->match_info) {
+      if (optarg->match_info->flags & GRN_MATCH_INFO_GET_MIN_RECORD_ID) {
+        previous_min = optarg->match_info->min;
+        set_min_enable_for_and_query = GRN_TRUE;
+      }
     }
   }
   if (mode == GRN_OP_SIMILAR) {
-------------- next part --------------
HTML����������������������������...
下载 



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