[Groonga-commit] groonga/groonga at 7569bad [master] mrb: accept NULL in bulk -> mrb_value converter

Zurück zum Archiv-Index

Kouhei Sutou null+****@clear*****
Thu Jul 16 17:21:01 JST 2015


Kouhei Sutou	2015-07-16 17:21:01 +0900 (Thu, 16 Jul 2015)

  New Revision: 7569bad82777a0f0934b07a72e0826f66aeb5c4e
  https://github.com/groonga/groonga/commit/7569bad82777a0f0934b07a72e0826f66aeb5c4e

  Message:
    mrb: accept NULL in bulk -> mrb_value converter

  Modified files:
    lib/mrb/mrb_bulk.c

  Modified: lib/mrb/mrb_bulk.c (+4 -0)
===================================================================
--- lib/mrb/mrb_bulk.c    2015-07-16 12:19:20 +0900 (8107ac5)
+++ lib/mrb/mrb_bulk.c    2015-07-16 17:21:01 +0900 (855ffd7)
@@ -91,6 +91,10 @@ grn_mrb_value_from_bulk(mrb_state *mrb, grn_obj *bulk)
   mrb_value mrb_value_;
   grn_ctx *ctx = (grn_ctx *)mrb->ud;
 
+  if (!bulk) {
+    return mrb_nil_value();
+  }
+
   switch (bulk->header.domain) {
   case GRN_DB_INT32 :
     {
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Zurück zum Archiv-Index