[PATCH] ws2_32/tests: Fix compilation warning
Fabian Maurer
dark.shadow4 at web.de
Sat Oct 7 11:14:54 CDT 2017
Without that change, gcc gives the warning
"include/winsock.h:480:37: ‘readfds.fd_array[__i]’
may be used uninitialized in this function"
Signed-off-by: Fabian Maurer <dark.shadow4 at web.de>
---
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 137c0f681e..a6ccb1b6ac 100644
--- a/dlls/ws2_32/tests/sock.c
+++ b/dlls/ws2_32/tests/sock.c
@@ -3605,7 +3605,7 @@ static void test_WSAStringToAddressW(void)
static DWORD WINAPI SelectReadThread(void *param)
{
select_thread_params *par = param;
- fd_set readfds;
+ fd_set readfds = {0};
int ret;
struct sockaddr_in addr;
struct timeval select_timeout;
--
2.14.2
More information about the wine-patches
mailing list