]> git.mxchange.org Git - flightgear.git/commitdiff
Fix "use of uninitialized data" reported by valgrind.
authorThorstenB <brehmt@gmail.com>
Mon, 26 Mar 2012 19:08:11 +0000 (21:08 +0200)
committerThorstenB <brehmt@gmail.com>
Mon, 26 Mar 2012 19:11:04 +0000 (21:11 +0200)
(issue triggered when FGGlobals::saveInitialState copies the entire
property tree on start-up).

src/Instrumentation/gps.cxx

index a7cd4ab80fd20a82e03dc5dede4f7ddbefaccfc4..8fff9cd65e506ec67589f725c3db932a200fd577 100644 (file)
@@ -232,6 +232,11 @@ GPS::GPS ( SGPropertyNode *node) :
   _mode("init"),
   _name(node->getStringValue("name", "gps")),
   _num(node->getIntValue("number", 0)),
+  _searchResultIndex(0),
+  _searchExact(true),
+  _searchIsRoute(false),
+  _searchHasNext(false),
+  _searchNames(false),
   _computeTurnData(false),
   _anticipateTurn(false),
   _inTurn(false)