Merge pull request #1947 from dlrobertson/fix_null_deref

Fix null deref in server_init
This commit is contained in:
emersion 2018-05-09 20:05:10 +01:00 committed by GitHub
commit 94cf3f1b17
Failed to generate hash of commit

View file

@ -48,6 +48,10 @@ bool server_init(struct sway_server *server) {
server->wl_event_loop = wl_display_get_event_loop(server->wl_display);
server->backend = wlr_backend_autocreate(server->wl_display);
if (!server->backend) {
wlr_log(L_ERROR, "Unable to create backend");
return false;
}
struct wlr_renderer *renderer = wlr_backend_get_renderer(server->backend);
assert(renderer);