From 35052568d083ffb5db191993c9233f9a2cf4180b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Tue, 2 Dec 2008 15:38:53 -0500 Subject: [PATCH] Exit if load_compositor() fails. --- wayland.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wayland.c b/wayland.c index ed943eed..6057502f 100644 --- a/wayland.c +++ b/wayland.c @@ -951,7 +951,8 @@ int main(int argc, char *argv[]) if (argc == 2) compositor = argv[1]; - load_compositor(display, compositor); + if (load_compositor(display, compositor)) + return -1; wl_display_run(display);