null+****@clear*****
null+****@clear*****
2011年 11月 25日 (金) 15:11:57 JST
Susumu Yata 2011-11-25 06:11:57 +0000 (Fri, 25 Nov 2011)
New Revision: 296db33a720b92f499a5410ec16debb0b3eeeb1a
Log:
fixed a bug that c->rest is uninitialized in some cases.
Modified files:
lib/hash.c
Modified: lib/hash.c (+1 -1)
===================================================================
--- lib/hash.c 2011-11-25 06:02:07 +0000 (81947e7)
+++ lib/hash.c 2011-11-25 06:11:57 +0000 (ee7a88c)
@@ -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;
}