ws2_32/tests: Initialize buffer to avoid valgrind warning.
authorMarcus Meissner <marcus@jet.franken.de>
Mon, 23 Jun 2008 06:44:19 +0000 (08:44 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 23 Jun 2008 12:09:57 +0000 (14:09 +0200)
dlls/ws2_32/tests/sock.c

index 79d2aebc08972f18974cae4553952b7b51de8554..1256c2dcb736509da2248ada4845d10971c0694d 100644 (file)
@@ -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" );