windows: remove redundant code in uv_tcp_write
The overlapped structure is reset twice, it is non necessary. Signed-off-by: Fedor Indutny <fedor@indutny.com>
This commit is contained in:
parent
e002340e50
commit
6d56e6e132
@ -810,7 +810,6 @@ int uv_tcp_write(uv_loop_t* loop,
|
|||||||
req->type = UV_WRITE;
|
req->type = UV_WRITE;
|
||||||
req->handle = (uv_stream_t*) handle;
|
req->handle = (uv_stream_t*) handle;
|
||||||
req->cb = cb;
|
req->cb = cb;
|
||||||
memset(&req->overlapped, 0, sizeof(req->overlapped));
|
|
||||||
|
|
||||||
/* Prepare the overlapped structure. */
|
/* Prepare the overlapped structure. */
|
||||||
memset(&(req->overlapped), 0, sizeof(req->overlapped));
|
memset(&(req->overlapped), 0, sizeof(req->overlapped));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user