upower: fix segfault by initializing lastWarningLevel (#3171)

fixes bd8b215416
master
clayton craft 2024-04-25 01:36:43 -07:00 committed by GitHub
parent 61ac7e4e10
commit 2481f7a292
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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;