From ebe77399876cc566dc0817e5ce8d5370ffc0f0fc Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Mon, 23 Jun 2008 08:44:19 +0200 Subject: [PATCH] ws2_32/tests: Initialize buffer to avoid valgrind warning. --- 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 79d2aebc089..1256c2dcb73 100644 --- a/dlls/ws2_32/tests/sock.c +++ b/dlls/ws2_32/tests/sock.c @@ -1127,6 +1127,7 @@ static void test_UDP(void) char buf[16]; int ss, i, n_recv, n_sent; + memset (buf,0,sizeof(buf)); for ( i = NUM_UDP_PEERS - 1; i >= 0; i-- ) { ok ( ( peer[i].s = socket ( AF_INET, SOCK_DGRAM, 0 ) ) != INVALID_SOCKET, "UDP: socket failed\n" );