From: ehofman Date: Thu, 27 Jan 2005 10:49:58 +0000 (+0000) Subject: Melchior FRANZ: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=031f06268656288aee97d398323bd898c2914179;p=flightgear.git 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. --- diff --git a/src/Airports/simple.hxx b/src/Airports/simple.hxx index 6b76400c9..4cb19528e 100644 --- a/src/Airports/simple.hxx +++ b/src/Airports/simple.hxx @@ -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;