[Groonga-commit] groonga/groonga at 69631b2 [master] grn_ts: add a missing initialization

Back to archive index

susumu.yata null+****@clear*****
Thu Sep 10 14:16:07 JST 2015


susumu.yata	2015-09-10 14:16:07 +0900 (Thu, 10 Sep 2015)

  New Revision: 69631b254733fb3abfc01a91ab6d1961bc93d129
  https://github.com/groonga/groonga/commit/69631b254733fb3abfc01a91ab6d1961bc93d129

  Message:
    grn_ts: add a missing initialization

  Modified files:
    lib/ts.c

  Modified: lib/ts.c (+2 -2)
===================================================================
--- lib/ts.c    2015-09-10 14:14:47 +0900 (7405cfa)
+++ lib/ts.c    2015-09-10 14:16:07 +0900 (18b8b41)
@@ -2744,7 +2744,7 @@ grn_ts_op_logical_or_filter(grn_ctx *ctx, grn_ts_expr_op_node *node,
 #define GRN_TS_OP_CHK_FILTER_VECTOR_CASE_BLOCK(type, KIND, kind)\
   GRN_TS_OP_CHK_FILTER_CASE_BLOCK(type, KIND ## _VECTOR, kind ## _vector)
 #define GRN_TS_OP_CHK_FILTER(type)\
-  size_t i, count;\
+  size_t i, count = 0;\
   for (i = 0; i < 2; i++) {\
     grn_rc rc = grn_ts_expr_node_evaluate_to_buf(ctx, node->args[i], in, n_in,\
                                                  &node->bufs[i]);\
@@ -2805,7 +2805,7 @@ grn_ts_op_not_equal_filter(grn_ctx *ctx, grn_ts_expr_op_node *node,
     return GRN_SUCCESS;\
   }
 #define GRN_TS_OP_CMP_FILTER(type)\
-  size_t i, count;\
+  size_t i, count = 0;\
   for (i = 0; i < 2; i++) {\
     grn_rc rc = grn_ts_expr_node_evaluate_to_buf(ctx, node->args[i], in, n_in,\
                                                  &node->bufs[i]);\
-------------- next part --------------
HTML����������������������������...
Download 



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