aboutsummaryrefslogtreecommitdiff
path: root/backend/multi
diff options
context:
space:
mode:
authorSimon Zeni <simon@bl4ckb0ne.ca>2021-11-19 10:44:45 -0500
committerSimon Zeni <simon@bl4ckb0ne.ca>2021-11-19 10:44:45 -0500
commit25bb92faeec27fa67340eb417d427ce721dc3218 (patch)
tree8ce3d25a31c14417f716e41baf306726a0f1285f /backend/multi
parent33eba9080c5fb54484bd6f39a9f38d48b31a2dd4 (diff)
backend/multi: add asserts in wlr_multi_backend_add
Diffstat (limited to 'backend/multi')
-rw-r--r--backend/multi/backend.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/backend/multi/backend.c b/backend/multi/backend.c
index 2309691d..b06bc486 100644
--- a/backend/multi/backend.c
+++ b/backend/multi/backend.c
@@ -189,6 +189,9 @@ static struct subbackend_state *multi_backend_get_subbackend(struct wlr_multi_ba
bool wlr_multi_backend_add(struct wlr_backend *_multi,
struct wlr_backend *backend) {
+ assert(_multi && backend);
+ assert(_multi != backend);
+
struct wlr_multi_backend *multi = multi_backend_from_backend(_multi);
if (multi_backend_get_subbackend(multi, backend)) {