null+****@clear*****
null+****@clear*****
2012年 7月 20日 (金) 11:38:40 JST
Kouhei Sutou 2012-07-20 11:38:40 +0900 (Fri, 20 Jul 2012) New Revision: 494908c0cc5c1722dfad6b5e29f888878ffda6be https://github.com/groonga/groonga/commit/494908c0cc5c1722dfad6b5e29f888878ffda6be Log: Fix a bug in 7a662965668980ec52cc136cd6f56c8b3f9b1043 Proc should be allocated when the name is already added. Modified files: lib/db.c Modified: lib/db.c (+1 -1) =================================================================== --- lib/db.c 2012-07-20 11:27:01 +0900 (783b7c1) +++ lib/db.c 2012-07-20 11:38:40 +0900 (e031e5e) @@ -522,6 +522,7 @@ grn_proc_create(grn_ctx *ctx, const char *name, unsigned int name_size, grn_proc ERR(GRN_NO_MEMORY_AVAILABLE, "grn_table_add failed"); GRN_API_RETURN(NULL); } + } if (!added) { db_value *vp; if ((vp = grn_tiny_array_at(&s->values, id)) && (res = (grn_proc *)vp->ptr)) { @@ -533,7 +534,6 @@ grn_proc_create(grn_ctx *ctx, const char *name, unsigned int name_size, grn_proc added = 1; } } - } } else if (ctx->impl && ctx->impl->values) { id = grn_array_add(ctx, ctx->impl->values, NULL) | GRN_OBJ_TMP_OBJECT; added = 1; -------------- next part -------------- HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...다운로드