aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backend/backend.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/backend/backend.c b/backend/backend.c
index 733a6ffd..c84cb063 100644
--- a/backend/backend.c
+++ b/backend/backend.c
@@ -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);
}