ws2_32/tests: Initialize address length argument before calling recvfrom()/WSARecvFrom() (Coverity).

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2017-10-03 11:56:41 +03:00 committed by Alexandre Julliard
parent 4c160b6f8c
commit 4f8c3d4750
1 changed files with 1 additions and 1 deletions

View File

@ -6862,7 +6862,7 @@ static DWORD CALLBACK write_watch_thread( void *arg )
{
struct write_watch_thread_args *args = arg;
struct sockaddr addr;
int addr_len, ret;
int addr_len = sizeof(addr), ret;
DWORD bytes, flags = 0;
WSABUF buf[1];