[Groonga-commit] groonga/groonga at a6a4501 [master] grn_ts: initialize a local variable to suppress a warning

Back to archive index

susumu.yata null+****@clear*****
Tue Sep 29 00:49:26 JST 2015


susumu.yata	2015-09-29 00:49:26 +0900 (Tue, 29 Sep 2015)

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

  Message:
    grn_ts: initialize a local variable to suppress a warning

  Modified files:
    lib/ts.c

  Modified: lib/ts.c (+1 -1)
===================================================================
--- lib/ts.c    2015-09-29 00:41:22 +0900 (a5361b2)
+++ lib/ts.c    2015-09-29 00:49:26 +0900 (24cf55a)
@@ -5132,7 +5132,7 @@ grn_ts_expr_parser_tokenize(grn_ctx *ctx, grn_ts_expr_parser *parser,
                             grn_ts_str str) {
   grn_ts_str rest = str;
   const char *end = str.ptr + str.size;
-  grn_ts_expr_token *token;
+  grn_ts_expr_token *token = NULL;
   do {
     grn_rc rc = grn_ts_expr_parser_reserve_tokens(ctx, parser);
     if (rc != GRN_SUCCESS) {
-------------- next part --------------
HTML����������������������������...
下載 



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