ws2_32/tests: Initialize a test buffer (valgrind)

Bruno Jesus 00cpxxx at gmail.com
Wed Jun 11 23:30:38 CDT 2014


Fixes bug https://bugs.winehq.org/show_bug.cgi?id=36661
-------------- next part --------------
diff --git a/dlls/ws2_32/tests/sock.c b/dlls/ws2_32/tests/sock.c
index 0bbce27..fb5ee1d 100644
--- a/dlls/ws2_32/tests/sock.c
+++ b/dlls/ws2_32/tests/sock.c
@@ -6833,6 +6833,7 @@ static void test_completion_port(void)
     GUID acceptExGuid = WSAID_ACCEPTEX;
     LPFN_ACCEPTEX pAcceptEx = NULL;
 
+    memset(buf, 0, sizeof(buf));
     previous_port = CreateIoCompletionPort(INVALID_HANDLE_VALUE, NULL, 0, 0);
     ok( previous_port != NULL, "Failed to create completion port %u\n", GetLastError());
 


More information about the wine-patches mailing list