[Groonga-commit] groonga/groonga at aa2209f [master] Add a missing NULL check

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Jan 5 23:06:04 JST 2015


Kouhei Sutou	2015-01-05 23:06:04 +0900 (Mon, 05 Jan 2015)

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

  Message:
    Add a missing NULL check

  Modified files:
    lib/db.c

  Modified: lib/db.c (+1 -1)
===================================================================
--- lib/db.c    2015-01-05 22:54:41 +0900 (1ebbfd1)
+++ lib/db.c    2015-01-05 23:06:04 +0900 (7e356d0)
@@ -8564,7 +8564,7 @@ grn_ctx_at(grn_ctx *ctx, grn_id id)
         }
       }
       res = vp->ptr;
-      if (res->header.type == GRN_PROC) {
+      if (res && res->header.type == GRN_PROC) {
         grn_plugin_ensure_registered(ctx, res);
       }
     }
-------------- next part --------------
HTML����������������������������...
Download 



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