]> git.mxchange.org Git - flightgear.git/commitdiff
Fix for bug #177 - check for empty strings
authorFrederic Bouvier <fredfgfs01@free.fr>
Fri, 3 Dec 2010 07:59:14 +0000 (08:59 +0100)
committerFrederic Bouvier <fredfgfs01@free.fr>
Fri, 3 Dec 2010 07:59:14 +0000 (08:59 +0100)
src/Airports/simple.cxx

index c7e486f45a56b95cd0ddac27e5179fe9d7a22fa7..7eceffe5b583dfd2a91b61d82e9838344bf85c60 100644 (file)
@@ -143,7 +143,10 @@ FGRunway* FGAirport::getRunwayByIdent(const string& aIdent) const
 
 FGAirport::Runway_iterator
 FGAirport::getIteratorForRunwayIdent(const string& aIdent) const
-{ 
+{
+  if (aIdent.empty())
+    return mRunways.end();
+
   loadRunways();
   
   string ident(aIdent);