mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-05-06 06:46:29 -04:00
modules: make sure we don't deref potential NULL
This commit is contained in:
parent
9124a09482
commit
aa6fa6bdc3
1 changed files with 2 additions and 1 deletions
|
|
@ -524,7 +524,8 @@ do_update_port(struct impl *impl,
|
|||
port->info = *info;
|
||||
if (info->props) {
|
||||
port->properties = pw_properties_new_dict(info->props);
|
||||
port->info.props = &port->properties->dict;
|
||||
if (port->properties != NULL)
|
||||
port->info.props = &port->properties->dict;
|
||||
}
|
||||
port->info.n_params = 0;
|
||||
port->info.params = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue