From: ThorstenB Date: Mon, 26 Mar 2012 19:08:11 +0000 (+0200) Subject: Fix "use of uninitialized data" reported by valgrind. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1df5347a06d5f38bc6d6267f242d5331b7c6f02b;p=flightgear.git Fix "use of uninitialized data" reported by valgrind. (issue triggered when FGGlobals::saveInitialState copies the entire property tree on start-up). --- diff --git a/src/Instrumentation/gps.cxx b/src/Instrumentation/gps.cxx index a7cd4ab80..8fff9cd65 100644 --- a/src/Instrumentation/gps.cxx +++ b/src/Instrumentation/gps.cxx @@ -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)