[Groonga-commit] groonga/groonga at 3aaf0f0 [master] mrb: add NULL check

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Jul 2 16:57:10 JST 2015


Kouhei Sutou	2015-07-02 16:57:10 +0900 (Thu, 02 Jul 2015)

  New Revision: 3aaf0f038bafbf95ff961b3dcbc396b0d31a2225
  https://github.com/groonga/groonga/commit/3aaf0f038bafbf95ff961b3dcbc396b0d31a2225

  Message:
    mrb: add NULL check

  Modified files:
    lib/mrb/mrb_index_cursor.c

  Modified: lib/mrb/mrb_index_cursor.c (+4 -0)
===================================================================
--- lib/mrb/mrb_index_cursor.c    2015-07-02 15:33:15 +0900 (34133ff)
+++ lib/mrb/mrb_index_cursor.c    2015-07-02 16:57:10 +0900 (20213b1)
@@ -176,6 +176,10 @@ mrb_grn_index_cursor_select(mrb_state *mrb, mrb_value self)
 
       GRN_RECORD_SET(ctx, expr_variable, posting->rid);
       matched = grn_expr_exec(ctx, expr, 0);
+      if (!matched) {
+        grn_mrb_ctx_check(mrb);
+        continue;
+      }
       GRN_TRUEP(ctx, matched, matched_raw);
       if (!matched_raw) {
         continue;
-------------- next part --------------
HTML����������������������������...
Download 



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