diff options
author | Tony Crisci <tony@dubstepdish.com> | 2017-12-21 18:27:38 -0500 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2017-12-21 18:27:38 -0500 |
commit | 9871cde60433699468e2bd30b60382904173ba55 (patch) | |
tree | 8c39aeec0a24cae1af55ec644b695ce15674fc65 | |
parent | b4159c52d5ee8bbcfdee291b19b503f9af7b24cd (diff) |
rootston: server backend check
-rw-r--r-- | rootston/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rootston/main.c b/rootston/main.c index 2f913272..161824d6 100644 --- a/rootston/main.c +++ b/rootston/main.c @@ -31,9 +31,9 @@ int main(int argc, char **argv) { assert(server.wl_display = wl_display_create()); assert(server.wl_event_loop = wl_display_get_event_loop(server.wl_display)); - assert(server.backend = wlr_backend_autocreate(server.wl_display)); + server.backend = wlr_backend_autocreate(server.wl_display); - if (wlr_multi_is_empty(server.backend)) { + if (server.backend == NULL) { wlr_log(L_ERROR, "could not start backend"); wlr_backend_destroy(server.backend); return 1; |