From 571fa734550e9cbd651f4ec65f715195bc85ade0 Mon Sep 17 00:00:00 2001 From: Gleb Popov <6yearold@gmail.com> Date: Sat, 10 Feb 2024 19:55:20 +0300 Subject: [PATCH] Fix uninitialized variable usage --- src/modules/module-protocol-native.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/module-protocol-native.c b/src/modules/module-protocol-native.c index f88022fe1..e5a27b74e 100644 --- a/src/modules/module-protocol-native.c +++ b/src/modules/module-protocol-native.c @@ -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);