diff --git a/src/GUI/WindowsFileDialog.cxx b/src/GUI/WindowsFileDialog.cxx index 3b9799994..9f7c816d1 100755 --- a/src/GUI/WindowsFileDialog.cxx +++ b/src/GUI/WindowsFileDialog.cxx @@ -74,7 +74,7 @@ void WindowsFileDialog::exec() opf.nMaxFile = MAX_PATH; std::string extensions; - size_t extensionsLen; + size_t extensionsLen=0; if (!_filterPatterns.empty()) { for (const auto& ext : _filterPatterns) { if (!simgear::strutils::starts_with(ext, "*.")) { diff --git a/src/Network/AV400WSim.cxx b/src/Network/AV400WSim.cxx index cd475027e..b6e9d0973 100644 --- a/src/Network/AV400WSim.cxx +++ b/src/Network/AV400WSim.cxx @@ -263,7 +263,7 @@ FGAV400WSimB::FGAV400WSimB() : hz2(0.0), hz2count(0), hz2cycles(0), -flight_phase(0xFF), +flight_phase(-1), req_hostid(true), req_sbas(false) {