From fec896577ec7477c2db821254478d35aea283a5a Mon Sep 17 00:00:00 2001 From: dhthwy <302825+dhthwy@users.noreply.github.com> Date: Fri, 21 Nov 2025 13:09:20 -0500 Subject: [PATCH] The default Filter() constructor fails to initialize some members. Provide safe defaults. --- plugins/debug.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/debug.cpp b/plugins/debug.cpp index eb2fc4c1c7..90e5c783d6 100644 --- a/plugins/debug.cpp +++ b/plugins/debug.cpp @@ -254,10 +254,10 @@ struct Filter { private: std::regex category_; std::regex plugin_; - DebugCategory::level level_; - size_t matches_; - bool persistent_; - bool enabled_; + DebugCategory::level level_{DebugCategory::level::LTRACE}; + size_t matches_{0}; + bool persistent_{false}; + bool enabled_{false}; std::string categoryText_; std::string pluginText_; };