[Groonga-commit] groonga/groonga at 00d435b [master] Suppress vagrant warning

Back to archive index

Kouhei Sutou null+****@clear*****
Tue May 9 09:07:27 JST 2017


Kouhei Sutou	2017-05-09 09:07:27 +0900 (Tue, 09 May 2017)

  New Revision: 00d435b991d37e174c6f3adb130610ce2e1f2c05
  https://github.com/groonga/groonga/commit/00d435b991d37e174c6f3adb130610ce2e1f2c05

  Message:
    Suppress vagrant warning
    
    ctx->rc may not be initialized. If ctx->rc is GRN_CANCEL unexpectedly,
    ctx->rc and ctx->errbuf aren't initialized by the following ERRCLR().

  Modified files:
    lib/ctx.c

  Modified: lib/ctx.c (+1 -0)
===================================================================
--- lib/ctx.c    2017-05-02 18:20:39 +0900 (916a8eb)
+++ lib/ctx.c    2017-05-09 09:07:27 +0900 (1b9bcc3)
@@ -345,6 +345,7 @@ grn_ctx_init_internal(grn_ctx *ctx, int flags)
 {
   if (!ctx) { return GRN_INVALID_ARGUMENT; }
   // if (ctx->stat != GRN_CTX_FIN) { return GRN_INVALID_ARGUMENT; }
+  ctx->rc = GRN_SUCCESS;
   ERRCLR(ctx);
   ctx->flags = flags;
   if (grn_ctx_per_db) {
-------------- next part --------------
HTML����������������������������...
다운로드 



More information about the Groonga-commit mailing list
Back to archive index