[Groonga-commit] groonga/groonga [master] initialize error buffer.

Back to archive index

null+****@clear***** null+****@clear*****
2010年 12月 20日 (月) 16:55:14 JST


Kouhei Sutou	2010-12-20 07:55:14 +0000 (Mon, 20 Dec 2010)

  New Revision: a0f8dca781f428f70ac586b50bc19a2011d6970a

  Log:
    initialize error buffer.

  Modified files:
    lib/ctx.c

  Modified: lib/ctx.c (+2 -0)
===================================================================
--- lib/ctx.c    2010-12-17 06:33:46 +0000 (61dcc43)
+++ lib/ctx.c    2010-12-20 07:55:14 +0000 (54afb85)
@@ -400,6 +400,8 @@ grn_ctx_init(grn_ctx *ctx, int flags)
   grn_gctx.next->prev = ctx;
   grn_gctx.next = ctx;
   CRITICAL_SECTION_LEAVE(grn_glock);
+  ctx->trace[0] = NULL;
+  ctx->errbuf[0] = '\0';
   return ctx->rc;
 }
 




Groonga-commit メーリングリストの案内
Back to archive index