From: Daniel Stone Date: Mon, 9 Mar 2020 16:26:34 +0000 (+0000) Subject: compositor: Fail on invalid transform for headless X-Git-Tag: upstream/9.0.0~77 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5450456da2309a91db874891d562fd9c8b8b97fc;p=platform%2Fupstream%2Fweston.git 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 --- 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); }