From 031f06268656288aee97d398323bd898c2914179 Mon Sep 17 00:00:00 2001 From: ehofman Date: Thu, 27 Jan 2005 10:49:58 +0000 Subject: [PATCH] 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. --- src/Airports/simple.hxx | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.39.5