[Groonga-commit] groonga/groonga at b242e4d [master] acceessor: Initialize all fields

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Nov 11 14:46:56 JST 2016


Kouhei Sutou	2016-11-11 14:46:56 +0900 (Fri, 11 Nov 2016)

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

  Message:
    acceessor: Initialize all fields

  Modified files:
    lib/db.c

  Modified: lib/db.c (+2 -0)
===================================================================
--- lib/db.c    2016-11-11 14:23:17 +0900 (b3bd01a)
+++ lib/db.c    2016-11-11 14:46:56 +0900 (a4c4da2)
@@ -5554,8 +5554,10 @@ accessor_new(grn_ctx *ctx)
     res->header.impl_flags = GRN_OBJ_ALLOCATED;
     res->header.flags = 0;
     res->header.domain = GRN_ID_NIL;
+    res->range = GRN_ID_NIL;
     res->action = GRN_ACCESSOR_VOID;
     res->offset = 0;
+    res->obj = NULL;
     res->next = NULL;
   }
   return res;
-------------- next part --------------
HTML����������������������������...
下载 



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