seat: Fix seat_device->fd assert
This commit is contained in:
parent
d26466bf3b
commit
ce6ab30d5a
1 changed files with 1 additions and 1 deletions
|
@ -226,7 +226,7 @@ struct seat_device *seat_open_device(struct client *client, const char *path) {
|
|||
int seat_close_device(struct client *client, struct seat_device *seat_device) {
|
||||
assert(client);
|
||||
assert(client->seat);
|
||||
assert(seat_device && seat_device->fd > 0);
|
||||
assert(seat_device && seat_device->fd != -1);
|
||||
|
||||
// Find the device in our list
|
||||
size_t idx = list_find(&client->devices, seat_device);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue