From 51ec36f23d277a6cb2c5a8979cc1ef94fa2d9111 Mon Sep 17 00:00:00 2001 From: Nick Bolton Date: Mon, 3 Mar 2025 12:26:13 +0000 Subject: [PATCH] chore: Set default values for `m_foreground` and `m_activeDesktop` MSWindowsWatchdog --- src/lib/platform/MSWindowsWatchdog.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;