Merge pull request #2648 from Mrcarrot1/wp-segfault
Fix segmentation fault in WirePlumber modulepull/2659/head
commit
c4330a1e36
|
@ -81,7 +81,7 @@ void waybar::modules::Wireplumber::updateNodeName(waybar::modules::Wireplumber*
|
||||||
auto nick = wp_properties_get(properties, "node.nick");
|
auto nick = wp_properties_get(properties, "node.nick");
|
||||||
auto description = wp_properties_get(properties, "node.description");
|
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_);
|
spdlog::debug("[{}]: Updating node name to: {}", self->name_, self->node_name_);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue