From 4f8c3d4750ea8f87d19adb706478b0ee3c6fbb78 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Tue, 3 Oct 2017 11:56:41 +0300 Subject: [PATCH] ws2_32/tests: Initialize address length argument before calling recvfrom()/WSARecvFrom() (Coverity). Signed-off-by: Nikolay Sivov Signed-off-by: Alexandre Julliard --- dlls/ws2_32/tests/sock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/ws2_32/tests/sock.c b/dlls/ws2_32/tests/sock.c index 91305f9f01b..137c0f681ef 100644 --- a/dlls/ws2_32/tests/sock.c +++ b/dlls/ws2_32/tests/sock.c @@ -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];