fix(wwan): null-initialize pointer members to avoid UB in destructor

This commit is contained in:
Alex
2026-07-04 01:36:46 +02:00
parent 2aa74a523c
commit 41d86d92a8
+3 -3
View File
@@ -23,9 +23,9 @@ class Wwan : public ALabel {
util::SleeperThread thread_; util::SleeperThread thread_;
std::string state_; std::string state_;
GDBusConnection* connection; GDBusConnection* connection = nullptr;
MMManager* manager; MMManager* manager = nullptr;
MMModem* current_modem; MMModem* current_modem = nullptr;
bool hideDisconnected = true; bool hideDisconnected = true;