fix(wwan): null-initialize pointer members to avoid UB in destructor
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user