Kouhei Sutou
null+****@clear*****
Mon May 22 09:36:10 JST 2017
Kouhei Sutou 2017-05-22 09:36:10 +0900 (Mon, 22 May 2017) New Revision: 63580fc5b2d87448a889b02f6fc8445ee3cfba41 https://github.com/groonga/groonga/commit/63580fc5b2d87448a889b02f6fc8445ee3cfba41 Message: Extract assigning in if condition Modified files: lib/expr.c Modified: lib/expr.c (+3 -1) =================================================================== --- lib/expr.c 2017-05-22 09:32:57 +0900 (ae2dc7d) +++ lib/expr.c 2017-05-22 09:36:10 +0900 (ae22bc6) @@ -2445,8 +2445,10 @@ grn_expr_exec_get_member_vector(grn_ctx *ctx, int n_elements = 0; grn_obj *range; grn_id range_id = DB_OBJ(column)->range; + grn_obj_reinit(ctx, result, range_id, 0); - if ((range = grn_ctx_at(ctx, range_id))) { + range = grn_ctx_at(ctx, range_id); + if (range) { switch (range->header.type) { case GRN_TYPE : n_elements = GRN_BULK_VSIZE(&values) / GRN_TYPE_SIZE(DB_OBJ(range)); -------------- next part -------------- HTML����������������������������...Download