[Groonga-commit] groonga/groonga at 4d29761 [master] grn_ts: initialize a variable to suppress warnings

Back to archive index

susumu.yata null+****@clear*****
Fri Oct 30 12:37:32 JST 2015


susumu.yata	2015-10-30 12:37:32 +0900 (Fri, 30 Oct 2015)

  New Revision: 4d297613c3a6a45eff68e632ef03809d6598f8c9
  https://github.com/groonga/groonga/commit/4d297613c3a6a45eff68e632ef03809d6598f8c9

  Message:
    grn_ts: initialize a variable to suppress warnings
    
    The warnings are as follows:
    /home/buildbot/buildbot/build/storage/mroonga/vendor/groonga/lib/ts.c:7569:
     warning: ‘token.ptr’ may be used uninitialized in this function
    /home/buildbot/buildbot/build/storage/mroonga/vendor/groonga/lib/ts.c:7569:
     warning: ‘token.size’ may be used uninitialized in this function

  Modified files:
    lib/ts.c

  Modified: lib/ts.c (+1 -1)
===================================================================
--- lib/ts.c    2015-10-30 11:27:20 +0900 (17852ed)
+++ lib/ts.c    2015-10-30 12:37:32 +0900 (5efb9fa)
@@ -7566,7 +7566,7 @@ grn_ts_writer_parse(grn_ctx *ctx, grn_ts_writer *writer,
   grn_rc rc;
   grn_ts_str rest = str;
   for ( ; ; ) {
-    grn_ts_str token;
+    grn_ts_str token = { NULL, 0 };
     rc = grn_ts_writer_tokenize(ctx, writer, rest, &token, &rest);
     if (rc != GRN_SUCCESS) {
       return (rc == GRN_END_OF_DATA) ? GRN_SUCCESS : rc;
-------------- next part --------------
HTML����������������������������...
Download 



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