]> git.mxchange.org Git - flightgear.git/commitdiff
Melchior FRANZ:
authorehofman <ehofman>
Thu, 27 Jan 2005 10:49:58 +0000 (10:49 +0000)
committerehofman <ehofman>
Thu, 27 Jan 2005 10:49:58 +0000 (10:49 +0000)
Here's again one of the more obscure bugs that valgrind complains about: somehow
the STL container classes manage to read out values before they were ever set.
This patch fixes that. This may not cause any harm in this case, but valgrind
seems to *always* be right about them.

src/Airports/simple.hxx

index 6b76400c91de5acb13e4243c51b582e43d4ecf90..4cb19528e1368d3986a3583ced1adfaab8cdcdd1 100644 (file)
@@ -55,6 +55,8 @@ struct FGAirport {
     string _code;               // depricated and can be removed
     string _name;
     bool _has_metar;
+
+    FGAirport() : _longitude(0), _latitude(0), _elevation(0) {}
 };
 
 typedef map < string, FGAirport > airport_map;