diff --git a/src/lib/platform/MSWindowsWatchdog.h b/src/lib/platform/MSWindowsWatchdog.h index d59f43715..59da00994 100644 --- a/src/lib/platform/MSWindowsWatchdog.h +++ b/src/lib/platform/MSWindowsWatchdog.h @@ -77,8 +77,8 @@ private: MSWindowsSession m_session; int m_startFailures = 0; FileLogOutputter *m_fileLogOutputter = nullptr; - bool m_foreground; - std::string m_activeDesktop; + bool m_foreground = false; + std::string m_activeDesktop = ""; std::unique_ptr m_process; std::optional m_nextStartTime = std::nullopt; ProcessState m_processState = ProcessState::Idle;