From e09b97edc4d32251a5cbf747aa746d8d2f3bdb2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= Date: Mon, 13 Feb 2023 19:53:30 +0100 Subject: [PATCH] pipewire: impl-core: actually return created object Actually return the pointer to the created object from `impl-core.c:core_create_object()` instead of returning a NULL pointer. This has not caused issues because the return value is not checked anywhere. --- src/pipewire/impl-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pipewire/impl-core.c b/src/pipewire/impl-core.c index 776f030fe..0def14a3b 100644 --- a/src/pipewire/impl-core.c +++ b/src/pipewire/impl-core.c @@ -351,7 +351,7 @@ core_create_object(void *object, if (obj == NULL) goto error_create_failed; - return 0; + return obj; error_no_factory: res = -ENOENT;