# HG changeset patch # User Tom Henderson # Date 1337608639 25200 # Node ID d1201ff72e0cfc8a4791dc154171f30e976b0da6 # Parent c21471f83747ce571d21a4d79bd425618d7a983e initialize variable diff -r c21471f83747 -r d1201ff72e0c src/dsr/model/dsr-routing.cc --- a/src/dsr/model/dsr-routing.cc Mon May 21 11:46:59 2012 +0200 +++ b/src/dsr/model/dsr-routing.cc Mon May 21 06:57:19 2012 -0700 @@ -1527,7 +1527,7 @@ } else { - uint32_t totalQueueSize; + uint32_t totalQueueSize = 0; for (std::map >::iterator j = m_priorityQueue.begin (); j != m_priorityQueue.end (); j++) { NS_LOG_DEBUG ("The size of the network queue for " << j->first << " is " << j->second->GetSize ());