[Groonga-commit] groonga/groonga at 5e233f6 [master] groonga windows: fix wrong value report on WSASend error

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Feb 5 15:02:05 JST 2018


Kouhei Sutou	2018-02-05 15:02:05 +0900 (Mon, 05 Feb 2018)

  New Revision: 5e233f6ca1ada025f9f3c60b91ceac9ddc79988b
  https://github.com/groonga/groonga/commit/5e233f6ca1ada025f9f3c60b91ceac9ddc79988b

  Message:
    groonga windows: fix wrong value report on WSASend error

  Modified files:
    src/groonga.c

  Modified: src/groonga.c (+1 -1)
===================================================================
--- src/groonga.c    2018-02-05 10:27:02 +0900 (8424196cf)
+++ src/groonga.c    2018-02-05 15:02:05 +0900 (fb9889bd5)
@@ -1136,7 +1136,7 @@ h_output_send(grn_ctx *ctx, grn_sock fd,
     n_buffers++;
   }
   {
-    DWORD sent;
+    DWORD sent = 0;
     if (WSASend(fd, wsabufs, n_buffers, &sent, 0, NULL, NULL) == SOCKET_ERROR) {
       SOERR("WSASend");
     }
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180205/e57ea63b/attachment.htm 



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