aboutsummaryrefslogtreecommitdiff
path: root/backend/backend.c
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-02-21 12:52:20 +0100
committerSimon Ser <contact@emersion.fr>2023-02-21 12:52:20 +0100
commit7303e1380880c5506397bbd01db2cdff295c1cf2 (patch)
tree6066d9ae03e7eec423c33d21af4034338569e658 /backend/backend.c
parent2849712356f2183932d444edf8ff03f8efa8fc86 (diff)
backend: avoid adding NULL backend in attempt_backend_by_name()
Diffstat (limited to 'backend/backend.c')
-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);
}