X-Git-Url: https://git.llucax.com/software/posixx.git/blobdiff_plain/7b35c34eaa3ee421eb5effc63801aeff69a9ffe8..25e37c946dfa92e9a3676a022177afef06588a01:/test/socket/generic_test.hpp?ds=inline 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);