From: g0dil Date: Fri, 10 Jul 2009 11:46:44 +0000 (+0000) Subject: Socket: Remove uninitialized variable warnings X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=eb5e23bc8e34fea4c49730ca9a17fcaad86e9b97;p=senf.git Socket: Remove uninitialized variable warnings git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1267 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/Socket/NetdeviceController.test.cc b/Socket/NetdeviceController.test.cc index ed401f8..38f1912 100644 --- a/Socket/NetdeviceController.test.cc +++ b/Socket/NetdeviceController.test.cc @@ -49,10 +49,10 @@ BOOST_AUTO_UNIT_TEST(NetdeviceController) { BOOST_CHECK_THROW( senf::NetdeviceController("invalid_interfacename"), senf::SystemException ); - int oldMTU; + int oldMTU (0); SENF_CHECK_NO_THROW( oldMTU = ctrl.mtu()); - bool promisc; + bool promisc (false); SENF_CHECK_NO_THROW( promisc = ctrl.promisc()); BOOST_CHECK( ctrl.isUp());