[Groonga-commit] groonga/groonga [get-value-support-vector] Add missing vector initialization

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Oct 19 00:30:48 JST 2012


Kouhei Sutou	2012-10-19 00:30:48 +0900 (Fri, 19 Oct 2012)

  New Revision: 8336dc6eddafe3be1818be804a080dfbfe63b9d5
  https://github.com/groonga/groonga/commit/8336dc6eddafe3be1818be804a080dfbfe63b9d5

  Log:
    Add missing vector initialization
    
    There are more codes for initialization but they will be done later.

  Modified files:
    lib/db.c

  Modified: lib/db.c (+1 -0)
===================================================================
--- lib/db.c    2012-10-19 00:29:49 +0900 (7372a77)
+++ lib/db.c    2012-10-19 00:30:48 +0900 (36b703f)
@@ -7322,6 +7322,7 @@ grn_obj_reinit(grn_ctx *ctx, grn_obj *obj, grn_id domain, unsigned char flags)
       if (flags & GRN_OBJ_VECTOR) {
         if (obj->header.type != GRN_VECTOR) { grn_bulk_fin(ctx, obj); }
         obj->header.type = GRN_VECTOR;
+        obj->u.v.sections = NULL;
       } else {
         if (obj->header.type == GRN_VECTOR) { VECTOR_CLEAR(ctx,obj); }
         obj->header.type = GRN_BULK;
-------------- next part --------------
HTML����������������������������...
Download 



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