X-Git-Url: https://git.llucax.com/software/posixx.git/blobdiff_plain/7b35c34eaa3ee421eb5effc63801aeff69a9ffe8..d22d22101e7dda5da951a76408ec32708072849e:/test/socket/generic_test.hpp?ds=sidebyside diff --git a/test/socket/generic_test.hpp b/test/socket/generic_test.hpp index 4e87780..a5716f6 100644 --- a/test/socket/generic_test.hpp +++ b/test/socket/generic_test.hpp @@ -233,6 +233,7 @@ BOOST_AUTO_TEST_CASE( dgram_sendto_recvfrom_struct_test ) s2.bind(test_address2); // socket 1 send data d; + memset(&d, 0, sizeof(data)); strcpy(d.msg, "hello world!"); d.number = -32495813; s1.send_struct(d, test_address2);