mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 21:05:58 +01:00
backend: avoid adding NULL backend in attempt_backend_by_name()
This commit is contained in:
parent
2849712356
commit
7303e13808
1 changed files with 3 additions and 0 deletions
|
@ -277,6 +277,9 @@ static bool attempt_backend_by_name(struct wl_display *display,
|
||||||
wlr_log(WLR_ERROR, "unrecognized backend '%s'", name);
|
wlr_log(WLR_ERROR, "unrecognized backend '%s'", name);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (backend == NULL) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
return wlr_multi_backend_add(multi, backend);
|
return wlr_multi_backend_add(multi, backend);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue