From 41d86d92a884184ca051a7b33cad65cdde87c59f Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 3 Jul 2026 22:17:26 +0200 Subject: [PATCH] fix(wwan): null-initialize pointer members to avoid UB in destructor --- include/modules/wwan.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/modules/wwan.hpp b/include/modules/wwan.hpp index 4ef851af..0aa7112c 100644 --- a/include/modules/wwan.hpp +++ b/include/modules/wwan.hpp @@ -23,9 +23,9 @@ class Wwan : public ALabel { util::SleeperThread thread_; std::string state_; - GDBusConnection* connection; - MMManager* manager; - MMModem* current_modem; + GDBusConnection* connection = nullptr; + MMManager* manager = nullptr; + MMModem* current_modem = nullptr; bool hideDisconnected = true;