]> git.llucax.com Git - software/posixx.git/commitdiff
Avoid valgrind error about send()ing uninitialized data
authorLeandro Lucarella <llucarella@integratech.com.ar>
Tue, 16 Sep 2008 13:17:35 +0000 (10:17 -0300)
committerLeandro Lucarella <llucarella@integratech.com.ar>
Tue, 16 Sep 2008 15:03:54 +0000 (12:03 -0300)
test/socket/generic_test.hpp

index 4e87780dbce6cb10bdafef89f6a1a4ca1a2ed094..a5716f674b902c7976e70a811f5af45a51ae6f2d 100644 (file)
@@ -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);