Exit if load_compositor() fails.

This commit is contained in:
Kristian Høgsberg 2008-12-02 15:38:53 -05:00
parent d91e049735
commit 35052568d0
1 changed files with 2 additions and 1 deletions

View File

@ -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);