From 015732db3319767566bc7f738f6e2ad2a30df581 Mon Sep 17 00:00:00 2001 From: James Turner Date: Sun, 17 Mar 2013 13:22:30 +0000 Subject: [PATCH] Fix un-inited vars found by valgrind. All benign, but good to get fixed. --- src/Aircraft/FlightHistory.cxx | 1 + src/Instrumentation/gps.cxx | 2 ++ src/Instrumentation/navradio.cxx | 1 + 3 files changed, 4 insertions(+) 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), -- 2.39.5