Skip to content

Commit

Permalink
Fix infinite loop bug
Browse files Browse the repository at this point in the history
It may be occurred when log level is debug.
  • Loading branch information
kou committed Oct 30, 2015
1 parent 4d29761 commit 2f7e6d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ii.c
Expand Up @@ -2640,7 +2640,7 @@ buffer_merge_dump_datavec(grn_ctx *ctx,
for (i = 0; i < ii->n_elements; i++) {
GRN_LOG(ctx, GRN_LOG_DEBUG, "dv[%d] data_size=%d, flags=%d",
i, dv[i].data_size, dv[i].flags);
for (i = 0, bufp = buf; j < dv[i].data_size;) {
for (j = 0, bufp = buf; j < dv[i].data_size;) {
bufp += grn_snprintf(bufp,
buf_end - bufp,
buf_end - bufp,
Expand Down

0 comments on commit 2f7e6d5

Please sign in to comment.