Fix lengthType initialization for optimized build
authorTom Henderson <tomh@tomh.org>
Sat, 28 Jul 2007 23:20:58 -0700
changeset 1001 33cf9c56e3cd
parent 1000 7c942ac88714
child 1002 f657a64894bd
child 1003 c9683107993d
child 1167 2cb083ff04c6
child 1724 24c7eee5a1ff
Fix lengthType initialization for optimized build
src/devices/csma-cd/csma-cd-net-device.cc
--- a/src/devices/csma-cd/csma-cd-net-device.cc	Sat Jul 28 14:14:16 2007 +0100
+++ b/src/devices/csma-cd/csma-cd-net-device.cc	Sat Jul 28 23:20:58 2007 -0700
@@ -161,7 +161,7 @@
   header.SetSource(this->GetAddress());
   header.SetDestination(dest);
 
-  uint16_t lengthType;
+  uint16_t lengthType = 0;
   switch (m_encapMode) 
     {
     case ETHERNET_V1: