From ce6ab30d5aa0c297b81af24b81f97e600dde10e8 Mon Sep 17 00:00:00 2001 From: Kenny Levinsen Date: Sat, 1 Aug 2020 23:10:50 +0200 Subject: seat: Fix seat_device->fd assert --- seatd/seat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3