Skip to content

Commit

Permalink
fixed a bug that c->rest is uninitialized in some cases.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-yata committed Nov 25, 2011
1 parent 2c7e05f commit 296db33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hash.c
Expand Up @@ -1669,8 +1669,8 @@ grn_hash_cursor_open(grn_ctx *ctx, grn_hash *hash,
} else {
c->curr_rec += c->dir * offset;
}
c->rest = (limit < 0) ? GRN_ID_MAX : limit;
exit :
c->rest = (limit < 0) ? GRN_ID_MAX : limit;
return c;
}

Expand Down

0 comments on commit 296db33

Please sign in to comment.