upower: fix segfault by initializing lastWarningLevel (#3171)
fixes bd8b215416
This commit is contained in:
@ -71,7 +71,7 @@ class UPower : public AModule {
|
|||||||
GDBusConnection *login1_connection;
|
GDBusConnection *login1_connection;
|
||||||
std::unique_ptr<UPowerTooltip> upower_tooltip;
|
std::unique_ptr<UPowerTooltip> upower_tooltip;
|
||||||
std::string lastStatus;
|
std::string lastStatus;
|
||||||
const char *lastWarningLevel;
|
const char *lastWarningLevel = nullptr;
|
||||||
bool showAltText;
|
bool showAltText;
|
||||||
bool showIcon = true;
|
bool showIcon = true;
|
||||||
bool upowerRunning;
|
bool upowerRunning;
|
||||||
|
Reference in New Issue
Block a user