[PATCH] initialize buffer

Marcus Meissner marcus at jet.franken.de
Mon Jun 23 01:44:19 CDT 2008


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 871da3c..9b6f402 100644
--- a/dlls/ws2_32/tests/sock.c
+++ b/dlls/ws2_32/tests/sock.c
@@ -1128,6 +1128,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" );
 
-- 
1.5.2.4



More information about the wine-patches mailing list