ws2_32/tests: Initialize buffer to avoid valgrind warning.
This commit is contained in:
parent
81fee5208b
commit
ebe7739987
|
@ -1127,6 +1127,7 @@ static void test_UDP(void)
|
||||||
char buf[16];
|
char buf[16];
|
||||||
int ss, i, n_recv, n_sent;
|
int ss, i, n_recv, n_sent;
|
||||||
|
|
||||||
|
memset (buf,0,sizeof(buf));
|
||||||
for ( i = NUM_UDP_PEERS - 1; i >= 0; i-- ) {
|
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" );
|
ok ( ( peer[i].s = socket ( AF_INET, SOCK_DGRAM, 0 ) ) != INVALID_SOCKET, "UDP: socket failed\n" );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue