[Groonga-commit] groonga/groonga at 38ee2fb [master] Move col use code after col's NULL check code

Back to archive index

Kouhei Sutou null+****@clear*****
Sun Aug 18 19:14:00 JST 2013


Kouhei Sutou	2013-08-18 19:14:00 +0900 (Sun, 18 Aug 2013)

  New Revision: 38ee2fb04ab2fff5c4aee495382e2afb72a585b0
  https://github.com/groonga/groonga/commit/38ee2fb04ab2fff5c4aee495382e2afb72a585b0

  Message:
    Move col use code after col's NULL check code

  Modified files:
    lib/expr.c

  Modified: lib/expr.c (+1 -1)
===================================================================
--- lib/expr.c    2013-08-18 18:04:55 +0900 (27178b0)
+++ lib/expr.c    2013-08-18 19:14:00 +0900 (8cbeb6a)
@@ -2945,8 +2945,8 @@ grn_expr_exec(grn_ctx *ctx, grn_obj *expr, int nargs)
               col = grn_obj_column(ctx, table, GRN_BULK_HEAD(col), GRN_BULK_VSIZE(col));
               if (col) { GRN_PTR_PUT(ctx, &e->objs, col); }
             }
-            grn_obj_reinit_for(ctx, res, col);
             if (col) {
+              grn_obj_reinit_for(ctx, res, col);
               if (col->header.type == GRN_ACCESSOR &&
                   ((grn_accessor *)col)->action == GRN_ACCESSOR_GET_KEY &&
                   ((grn_accessor *)col)->obj->header.type == GRN_TABLE_PAT_KEY) {
-------------- next part --------------
HTML����������������������������...
下載 



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