Marcus Meissner : ws2_32/tests: Initialize buffer to avoid valgrind warning .

Alexandre Julliard julliard at winehq.org
Mon Jun 23 07:36:06 CDT 2008


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

Author: Marcus Meissner <marcus at jet.franken.de>
Date:   Mon Jun 23 08:44:19 2008 +0200

ws2_32/tests: Initialize buffer to avoid valgrind warning.

---

 dlls/ws2_32/tests/sock.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/ws2_32/tests/sock.c b/dlls/ws2_32/tests/sock.c
index 79d2aeb..1256c2d 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" );
 




More information about the wine-cvs mailing list