]> git.mxchange.org Git - flightgear.git/commitdiff
Fix un-inited vars found by valgrind.
authorJames Turner <zakalawe@mac.com>
Sun, 17 Mar 2013 13:22:30 +0000 (13:22 +0000)
committerJames Turner <zakalawe@mac.com>
Sun, 17 Mar 2013 13:22:30 +0000 (13:22 +0000)
All benign, but good to get fixed.

src/Aircraft/FlightHistory.cxx
src/Instrumentation/gps.cxx
src/Instrumentation/navradio.cxx

index 0a30261f7a0b67a4c6ac9941a8eb16836c03aa98..c9f6eb52862afb28145489c42e244462c8b9dc15 100644 (file)
@@ -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()
index cb9ef1a89bc533c9f9ea65a553b885e0e262ab13..baba6e34b59b4460b69c0ccc075d3045f1e56581 100644 (file)
@@ -274,6 +274,8 @@ GPS::init ()
     _realismSimpleGps->setBoolValue(true);
   }
   
+  clearOutput();
+    
   // last thing, add the deprecated prop watcher
   new DeprecatedPropListener(_gpsNode);
 }
index 480a6f80a5760f76bfceb0a87052c4efffddd99e..073e28621429d085fdf99d366a31770e8f368e67 100644 (file)
@@ -105,6 +105,7 @@ static std::auto_ptr<SGInterpTable> 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),