mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
style: include brackets for if/while/for, even if it's a single statement
This commit is contained in:
parent
1fbd6cb0f0
commit
dcc743047b
7 changed files with 39 additions and 15 deletions
|
|
@ -307,8 +307,9 @@ size_t wlr_session_find_gpus(struct wlr_session *session,
|
|||
}
|
||||
|
||||
const char *seat = udev_device_get_property_value(dev, "ID_SEAT");
|
||||
if (!seat)
|
||||
if (!seat) {
|
||||
seat = "seat0";
|
||||
}
|
||||
if (session->seat[0] && strcmp(session->seat, seat) != 0) {
|
||||
udev_device_unref(dev);
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue