[Groonga-commit] groonga/groonga at efb2612 [master] mrb: add missing comparison

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Mar 2 23:31:44 JST 2015


Kouhei Sutou	2015-03-02 23:31:44 +0900 (Mon, 02 Mar 2015)

  New Revision: efb2612c6ff8c9729402d47a5a1f6b8d86cf71c3
  https://github.com/groonga/groonga/commit/efb2612c6ff8c9729402d47a5a1f6b8d86cf71c3

  Message:
    mrb: add missing comparison

  Modified files:
    lib/mrb/mrb_accessor.c

  Modified: lib/mrb/mrb_accessor.c (+1 -1)
===================================================================
--- lib/mrb/mrb_accessor.c    2015-03-02 23:28:20 +0900 (f9dfaec)
+++ lib/mrb/mrb_accessor.c    2015-03-02 23:31:44 +0900 (464f3b5)
@@ -59,7 +59,7 @@ mrb_grn_accessor_have_next_p(mrb_state *mrb, mrb_value self)
   grn_accessor *accessor;
 
   accessor = DATA_PTR(self);
-  return mrb_bool_value(accessor->next);
+  return mrb_bool_value(accessor->next != NULL);
 }
 
 void
-------------- next part --------------
HTML����������������������������...
Download 



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