upower: fix segfault by initializing lastWarningLevel (#3171)
fixes bd8b215416
This commit is contained in:
parent
61ac7e4e10
commit
2481f7a292
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue