1
0
Fork 0

Melchior FRANZ:

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.
This commit is contained in:
ehofman 2005-01-27 10:49:58 +00:00
parent 671bffe9af
commit 031f062686

View file

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