[Groonga-commit] groonga/groonga [master] initialize error related variables in grn_ctx.

Back to archive index

null+****@clear***** null+****@clear*****
2011年 2月 27日 (日) 11:33:02 JST


Kouhei Sutou	2011-02-27 02:33:02 +0000 (Sun, 27 Feb 2011)

  New Revision: 8b3b5a3e40717d0a106d649ea84034c1070edf78

  Log:
    initialize error related variables in grn_ctx.
    
    Reported by @tomotaka_ito. Thanks!!!

  Modified files:
    lib/ctx.c

  Modified: lib/ctx.c (+3 -0)
===================================================================
--- lib/ctx.c    2011-02-25 10:39:47 +0000 (269adc2)
+++ lib/ctx.c    2011-02-27 02:33:02 +0000 (d8951f2)
@@ -549,6 +549,9 @@ grn_ctx_init(grn_ctx *ctx, int flags)
   grn_gctx.next->prev = ctx;
   grn_gctx.next = ctx;
   CRITICAL_SECTION_LEAVE(grn_glock);
+  ctx->errline = 0;
+  ctx->errfile = "";
+  ctx->errfunc = "";
   ctx->trace[0] = NULL;
   ctx->errbuf[0] = '\0';
   return ctx->rc;




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