diff options
-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); |