Bruno Jesus : ws2_32/tests: Initialize a test buffer (valgrind).

Alexandre Julliard julliard at winehq.org
Thu Jun 12 15:51:43 CDT 2014


Module: wine
Branch: master
Commit: 79d29e2347b7d1780bc1b71f2dd6c64e564f6e61
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=79d29e2347b7d1780bc1b71f2dd6c64e564f6e61

Author: Bruno Jesus <00cpxxx at gmail.com>
Date:   Thu Jun 12 01:30:38 2014 -0300

ws2_32/tests: Initialize a test buffer (valgrind).

---

 dlls/ws2_32/tests/sock.c |    1 +
 1 file changed, 1 insertion(+)

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-cvs mailing list