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:
parent
671bffe9af
commit
031f062686
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue