mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
pulse-server: avoid crashing when clearing metadata
The key will be NULL so we can't strdup it. Fixes #845
This commit is contained in:
parent
1c365f6169
commit
662fd8a1f9
2 changed files with 3 additions and 3 deletions
|
|
@ -871,7 +871,7 @@ static void refresh_auto_default_nodes(struct impl *impl)
|
|||
const char *name = pw_properties_get(node->obj->obj.props, PW_KEY_NODE_NAME);
|
||||
char buf[1024];
|
||||
|
||||
if (strzcmp(name, def->value) == 0)
|
||||
if (name == NULL || strzcmp(name, def->value) == 0)
|
||||
continue;
|
||||
|
||||
free(def->value);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue