mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
Fix uninitialized variable usage
This commit is contained in:
parent
d2750420c6
commit
571fa73455
1 changed files with 3 additions and 1 deletions
|
|
@ -1727,8 +1727,10 @@ int pipewire__module_init(struct pw_impl_module *module, const char *args_str)
|
|||
d->protocol = this;
|
||||
d->module = module;
|
||||
d->props = pw_properties_new(NULL, NULL);
|
||||
if (d->props == NULL)
|
||||
if (d->props == NULL) {
|
||||
res = -ENOMEM;
|
||||
goto error_cleanup;
|
||||
}
|
||||
|
||||
props = pw_context_get_properties(context);
|
||||
pw_properties_update_keys(d->props, &props->dict, keys);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue