Navigation Menu

Skip to content

Commit

Permalink
groonga windows: fix wrong value report on WSASend error
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Feb 5, 2018
1 parent 7077569 commit 5e233f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/groonga.c
Expand Up @@ -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");
}
Expand Down

0 comments on commit 5e233f6

Please sign in to comment.