diff options
author | Kenny Levinsen <kl@kl.wtf> | 2020-08-01 23:10:50 +0200 |
---|---|---|
committer | Kenny Levinsen <kl@kl.wtf> | 2020-08-01 23:13:54 +0200 |
commit | ce6ab30d5aa0c297b81af24b81f97e600dde10e8 (patch) | |
tree | 98d33e19f571fb71bbb556d286b391de8789fc1e /seatd | |
parent | d26466bf3bbd15d609e471202edb09dbc555fbe6 (diff) |
seat: Fix seat_device->fd assert
Diffstat (limited to 'seatd')
-rw-r--r-- | seatd/seat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/seatd/seat.c b/seatd/seat.c index d90581d..e876ccf 100644 --- a/seatd/seat.c +++ b/seatd/seat.c @@ -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); |