null+****@clear*****
null+****@clear*****
2012年 1月 30日 (月) 09:16:47 JST
Daijiro MORI 2012-01-30 09:16:47 +0900 (Mon, 30 Jan 2012)
New Revision: 39d53f5ea8927b6fd52c82c8d8cc6261d54b999c
Log:
fixed a bug which makes the root node invisible
Modified files:
lib/pat.c
Modified: lib/pat.c (+1 -0)
===================================================================
--- lib/pat.c 2012-01-26 10:08:38 +0900 (4470b25)
+++ lib/pat.c 2012-01-30 09:16:47 +0900 (62f879c)
@@ -1114,6 +1114,7 @@ __grn_pat_del(grn_ctx *ctx, grn_pat *pat, const char *key, uint32_t key_size, in
}
if (*p0 == otherside) {
PAT_CHK_SET(rn0, 0);
+ if (proot == p0 && !rn0->check) { rn0->lr[0] = rn0->lr[1] = otherside; }
} else {
if (otherside) {
PAT_AT(pat, otherside, rno);