[Groonga-commit] groonga/groonga [master] Use NULL for error file and function for remote error

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Nov 22 09:01:45 JST 2012


Kouhei Sutou	2012-11-22 09:01:45 +0900 (Thu, 22 Nov 2012)

  New Revision: 258bb5f5dba59a2a6186bee10662428aca0bf3f3
  https://github.com/groonga/groonga/commit/258bb5f5dba59a2a6186bee10662428aca0bf3f3

  Log:
    Use NULL for error file and function for remote error

  Modified files:
    lib/ctx.c

  Modified: lib/ctx.c (+2 -2)
===================================================================
--- lib/ctx.c    2012-11-21 17:05:14 +0900 (fe60632)
+++ lib/ctx.c    2012-11-22 09:01:45 +0900 (a358592)
@@ -1536,8 +1536,8 @@ grn_ctx_recv(grn_ctx *ctx, char **str, unsigned int *str_len, int *flags)
         ctx->rc = (int16_t)ntohs(header.status);
         ctx->errbuf[0] = '\0';
         ctx->errline = 0;
-        ctx->errfile = "";
-        ctx->errfunc = "";
+        ctx->errfile = NULL;
+        ctx->errfunc = NULL;
       }
       goto exit;
     } else {
-------------- next part --------------
HTML����������������������������...
Download 



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