[groonga-dev,00074] 予約タイプの名前が欠ける

Back to archive index

Kouhei Sutou kou****@clear*****
2009年 5月 28日 (木) 22:43:22 JST


須藤です。

たぶん、バグだと思うんですが、予約タイプの名前が欠けてしまっ
て"<sys:00"になっちゃっています。

diff --git a/lib/db.c b/lib/db.c
index 2f2318d..640ff1e 100644
--- a/lib/db.c
+++ b/lib/db.c
@@ -4319,6 +4319,7 @@ grn_db_init_builtin_types(grn_ctx *ctx)
     char buf[GRN_TABLE_MAX_KEY_SIZE] = "<sys:00>";
     while (id < N_RESERVED_TYPES) {
       grn_itoh(++id, buf + 5, 2);
+      buf[5 + 2] = '>';
       grn_obj_register(ctx, db, buf, 8);
     }
   }


# 関係ないですけど、char buf[] = "<sys:00>";でもよさそうな気
# がしたりします。。。

--
須藤 功平 <kou****@clear*****>

株式会社クリアコード (http://www.clear-code.com/)
Tel: 03-6231-7270, Fax: 03-6231-7271




groonga-dev メーリングリストの案内
Back to archive index