From: James Turner Date: Sun, 17 Mar 2013 13:22:30 +0000 (+0000) Subject: Fix un-inited vars found by valgrind. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=015732db3319767566bc7f738f6e2ad2a30df581;p=flightgear.git Fix un-inited vars found by valgrind. All benign, but good to get fixed. --- diff --git a/src/Aircraft/FlightHistory.cxx b/src/Aircraft/FlightHistory.cxx index 0a30261f7..c9f6eb528 100644 --- a/src/Aircraft/FlightHistory.cxx +++ b/src/Aircraft/FlightHistory.cxx @@ -70,6 +70,7 @@ void FGFlightHistory::init() // force bucket re-allocation m_validSampleCount = SAMPLE_BUCKET_WIDTH; + m_lastCaptureTime = globals->get_sim_time_sec(); } void FGFlightHistory::shutdown() diff --git a/src/Instrumentation/gps.cxx b/src/Instrumentation/gps.cxx index cb9ef1a89..baba6e34b 100644 --- a/src/Instrumentation/gps.cxx +++ b/src/Instrumentation/gps.cxx @@ -274,6 +274,8 @@ GPS::init () _realismSimpleGps->setBoolValue(true); } + clearOutput(); + // last thing, add the deprecated prop watcher new DeprecatedPropListener(_gpsNode); } diff --git a/src/Instrumentation/navradio.cxx b/src/Instrumentation/navradio.cxx index 480a6f80a..073e28621 100644 --- a/src/Instrumentation/navradio.cxx +++ b/src/Instrumentation/navradio.cxx @@ -105,6 +105,7 @@ static std::auto_ptr static_terminalRangeInterp, FGNavRadio::FGNavRadio(SGPropertyNode *node) : _operable(false), play_count(0), + _nav_search(true), _last_freq(0.0), target_radial(0.0), effective_range(0.0),