Skip to content

Commit

Permalink
grn_ts: initialize a variable to suppress warnings
Browse files Browse the repository at this point in the history
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
  • Loading branch information
s-yata committed Oct 30, 2015
1 parent 47226ba commit 4d29761
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ts.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4d29761

Please sign in to comment.