mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
avoid some leaks and NULL pointer derefs
This commit is contained in:
parent
2fd64f1591
commit
dac60d4e5b
3 changed files with 8 additions and 1 deletions
|
|
@ -189,6 +189,9 @@ setup_props(struct pw_context *context, struct spa_node *spa_node, struct pw_pro
|
|||
if ((prop = spa_pod_find_prop(props, prop, type))) {
|
||||
const char *value = pw_properties_get(pw_props, key);
|
||||
|
||||
if (value == NULL)
|
||||
continue;
|
||||
|
||||
pw_log_debug("configure prop %s to %s", key, value);
|
||||
|
||||
switch(prop->value.type) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue