Skip to content

Commit

Permalink
Merge pull request #2648 from Mrcarrot1/wp-segfault
Browse files Browse the repository at this point in the history
Fix segmentation fault in WirePlumber module
  • Loading branch information
Alexays committed Nov 6, 2023
2 parents e24adbc + 4d339f0 commit c4330a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/wireplumber.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ void waybar::modules::Wireplumber::updateNodeName(waybar::modules::Wireplumber*
auto nick = wp_properties_get(properties, "node.nick");
auto description = wp_properties_get(properties, "node.description");

self->node_name_ = nick ? nick : description;
self->node_name_ = nick ? nick : description ? description : "Unknown node name";
spdlog::debug("[{}]: Updating node name to: {}", self->name_, self->node_name_);
}

Expand Down

0 comments on commit c4330a1

Please sign in to comment.