]> git.mxchange.org Git - flightgear.git/commitdiff
Fix a couple of issues valgrind identified.
authorJames Turner <zakalawe@mac.com>
Sun, 2 Jun 2013 18:59:18 +0000 (19:59 +0100)
committerJames Turner <zakalawe@mac.com>
Sun, 2 Jun 2013 18:59:18 +0000 (19:59 +0100)
src/Instrumentation/gps.cxx
src/Instrumentation/transponder.cxx

index bb1e9d49064ceab8fe0599ffd26df033f248d8b6..e38a1d04bf1891204c91f6b01161a1d74c7466e7 100644 (file)
@@ -107,6 +107,12 @@ GPS::GPS ( SGPropertyNode *node, bool defaultGPSMode) :
   
   SGPropertyNode *wp_node = _gpsNode->getChild("wp", 0, true);
   _currentWayptNode = wp_node->getChild("wp", 1, true);
+    
+#if FG_210_COMPAT
+    _searchIsRoute = false;
+    _searchHasNext = false;
+    _searchType = FGPositioned::INVALID;
+#endif
 }
 
 GPS::~GPS ()
index a555aba361b8509fc46917e45a715e00fcfebaf3..b95e9404d54c93a778b062c842f0c97680e00da2 100644 (file)
@@ -48,6 +48,7 @@ const int INVALID_ID = -9999;
 
 Transponder::Transponder(SGPropertyNode *node)
     :
+    _identMode(false),
     _name(node->getStringValue("name", "transponder")),
     _num(node->getIntValue("number", 0)),
     _mode((Mode) node->getIntValue("mode", 1)),