summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Vlad <marius.vlad@collabora.com>2023-04-06 10:59:37 +0300
committerMarius Vlad <marius.vlad@collabora.com>2023-04-06 10:59:37 +0300
commitf825bf9e71ac5adfcbdc6ef7f6c2fef8555ee4a3 (patch)
treeb5bbce503b10b1ae859c7b44cac011f698d995c0
parent2e91c40bde5253a30716092af31e4cf07febda44 (diff)
compositor: Don't reuse previous return values
In case we couldn't enable the output do not return early without setting the proper return value. This causes an issue later one, because the signal list isn't initalized, taking down the compositor with a crash. Bug-AGL: SPEC-4734 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: Ia5ebc226f6b8f702e710a5976c471d04302bcb00
-rw-r--r--src/compositor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compositor.c b/src/compositor.c
index 5ef3b34..250c90c 100644
--- a/src/compositor.c
+++ b/src/compositor.c
@@ -838,7 +838,7 @@ remote_output_init(struct ivi_output *ivi_output,
goto err;
}
- if (weston_output_enable(ivi_output->output) < 0) {
+ if ((ret = weston_output_enable(ivi_output->output)) < 0) {
weston_log("Enabling remoted output \"%s\" failed.\n",
output_name);
goto err;