diff options
author | Simon Ser <contact@emersion.fr> | 2023-02-21 12:52:20 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-02-21 12:52:20 +0100 |
commit | 7303e1380880c5506397bbd01db2cdff295c1cf2 (patch) | |
tree | 6066d9ae03e7eec423c33d21af4034338569e658 /backend/backend.c | |
parent | 2849712356f2183932d444edf8ff03f8efa8fc86 (diff) |
backend: avoid adding NULL backend in attempt_backend_by_name()
Diffstat (limited to 'backend/backend.c')
-rw-r--r-- | backend/backend.c | 3 |
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); } |