From 5450456da2309a91db874891d562fd9c8b8b97fc Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Mon, 9 Mar 2020 16:26:34 +0000 Subject: [PATCH] compositor: Fail on invalid transform for headless As in aaf35586f471, we want to fail when we are passed an invalid transform name, not just blindly configure on using the normal transform. The previous commit missed the callsite from the headless backend's command-line parsing. Fix this so that headless fails when an invalid transform is specified on the command line. Signed-off-by: Daniel Stone --- compositor/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compositor/main.c b/compositor/main.c index c9002bf4..c1a72701 100644 --- a/compositor/main.c +++ b/compositor/main.c @@ -2602,7 +2602,7 @@ load_headless_backend(struct weston_compositor *c, if (transform) { if (weston_parse_transform(transform, &parsed_options->transform) < 0) { weston_log("Invalid transform \"%s\"\n", transform); - parsed_options->transform = UINT32_MAX; + return -1; } free(transform); }