Fix optimized build
authorTommaso Pecorella <tommaso.pecorella@unifi.it>
Mon, 12 Aug 2013 22:07:12 +0200
changeset 10133 fc04737896dc
parent 10132 c11b8c143664
child 10134 812693136df0
Fix optimized build
src/internet/helper/ipv6-interface-container.cc
--- a/src/internet/helper/ipv6-interface-container.cc	Mon Aug 12 10:19:28 2013 -0700
+++ b/src/internet/helper/ipv6-interface-container.cc	Mon Aug 12 22:07:12 2013 +0200
@@ -140,7 +140,7 @@
 
 void Ipv6InterfaceContainer::SetDefaultRouteInAllNodes (Ipv6Address routerAddress)
 {
-  uint32_t routerIndex;
+  uint32_t routerIndex = 0;
   bool found = false;
   for (uint32_t index = 0; index < m_interfaces.size (); index++)
     {
@@ -196,7 +196,7 @@
 
 void Ipv6InterfaceContainer::SetDefaultRoute (uint32_t i, Ipv6Address routerAddr)
 {
-  uint32_t routerIndex;
+  uint32_t routerIndex = 0;
   bool found = false;
   for (uint32_t index = 0; index < m_interfaces.size (); index++)
     {
@@ -252,7 +252,7 @@
       return address;
     }
 
-  uint32_t nodeIndex;
+  uint32_t nodeIndex = 0;
   bool found = false;
   for (uint32_t index = 0; index < m_interfaces.size (); index++)
     {