backend: avoid adding NULL backend in attempt_backend_by_name()

Simon Ser 2 years ago
parent 2849712356
commit 7303e13808

@ -277,6 +277,9 @@ static bool attempt_backend_by_name(struct wl_display *display,
wlr_log(WLR_ERROR, "unrecognized backend '%s'", name);
return false;
}
if (backend == NULL) {
return false;
}
return wlr_multi_backend_add(multi, backend);
}

Loading…
Cancel
Save