Commit 81433582 authored by Daniel Stone's avatar Daniel Stone Committed by Simon Ser

weston: Properly test for output-creation failure

We were testing the wrong variable to see if output creation had failed:
instead of testing the return of the function we'd just called, we were
testing something we'd already checked earlier.
Signed-off-by: Daniel Stone's avatarDaniel Stone <daniels@collabora.com>
parent a9278d28
Pipeline #41757 passed with stages
in 39 seconds
......@@ -1818,7 +1818,7 @@ wet_layoutput_create_output(struct wet_layoutput *lo, const char *name)
output->output =
weston_compositor_create_output(lo->compositor->compositor,
name);
if (!output) {
if (!output->output) {
free(output);
return NULL;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment