[Groonga-commit] ranguba/rroonga at 3a4e0b3 [master] Add NULL check

Back to archive index

Hiroshi Hatake null+****@clear*****
Sat Feb 14 16:02:47 JST 2015


Hiroshi Hatake	2015-02-14 16:02:47 +0900 (Sat, 14 Feb 2015)

  New Revision: 3a4e0b36f040d26b2acc5442e83b35c0ad2c1f47
  https://github.com/ranguba/rroonga/commit/3a4e0b36f040d26b2acc5442e83b35c0ad2c1f47

  Message:
    Add NULL check

  Modified files:
    ext/groonga/rb-grn-table.c

  Modified: ext/groonga/rb-grn-table.c (+3 -1)
===================================================================
--- ext/groonga/rb-grn-table.c    2015-02-14 15:09:57 +0900 (9193a01)
+++ ext/groonga/rb-grn-table.c    2015-02-14 16:02:47 +0900 (1113e2a)
@@ -1472,7 +1472,9 @@ rb_grn_table_group (int argc, VALUE *argv, VALUE self)
     }
 
     rc = grn_table_group(context, table, keys, n_keys, &result, 1);
-    grn_obj_unlink(context, result.calc_target);
+    if (result.calc_target) {
+        grn_obj_unlink(context, result.calc_target);
+    }
     rb_grn_context_check(context, self);
     rb_grn_rc_check(rc, self);
 
-------------- next part --------------
HTML����������������������������...
Download 



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