Socket: Remove uninitialized variable warnings
g0dil [Fri, 10 Jul 2009 11:46:44 +0000 (11:46 +0000)]
git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1267 270642c3-0616-0410-b53a-bc976706d245

Socket/NetdeviceController.test.cc

index ed401f8..38f1912 100644 (file)
@@ -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());