From 7303e1380880c5506397bbd01db2cdff295c1cf2 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 21 Feb 2023 12:52:20 +0100 Subject: backend: avoid adding NULL backend in attempt_backend_by_name() --- backend/backend.c | 3 +++ 1 file changed, 3 insertions(+) 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); } -- cgit v1.2.3