From 1df5347a06d5f38bc6d6267f242d5331b7c6f02b Mon Sep 17 00:00:00 2001 From: ThorstenB Date: Mon, 26 Mar 2012 21:08:11 +0200 Subject: [PATCH] Fix "use of uninitialized data" reported by valgrind. (issue triggered when FGGlobals::saveInitialState copies the entire property tree on start-up). --- src/Instrumentation/gps.cxx | 5 +++++ 1 file changed, 5 insertions(+) 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)