make ./waf check pass again.
authorTimo Bingmann <timo.bingmann@student.kit.edu>
Thu, 16 Apr 2009 15:58:22 +0200
changeset 4331 771b9f0005d6
parent 4330 0d55474796e8
child 4332 a1c7bc503a0c
make ./waf check pass again.
src/devices/wifi/wifi-mode.cc
--- a/src/devices/wifi/wifi-mode.cc	Thu Apr 16 13:29:37 2009 +0200
+++ b/src/devices/wifi/wifi-mode.cc	Thu Apr 16 15:58:22 2009 +0200
@@ -87,6 +87,12 @@
 std::string 
 WifiMode::GetUniqueName (void) const
 {
+  // needed for ostream printing of the invalid mode
+  if (m_uid == 0)
+    {
+      return "Invalid-WifiMode";
+    }
+
   struct WifiModeFactory::WifiModeItem *item = WifiModeFactory::GetFactory ()->Get (m_uid);
   return item->uniqueUid;
 }