summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-02-26 18:33:51 +0100
committerSven Eden <yamakuzure@gmx.net>2018-05-30 07:59:06 +0200
commit80a3f96eba1e020c4783750af5904eb4f8bc1ae3 (patch)
treeaeee28b658997b1d68083bfe10febe5668730ce3 /src
parent8145ac56d79fd47b9eb31147f91f570bb3669576 (diff)
logind: fd 0 is a valid fd
Diffstat (limited to 'src')
-rw-r--r--src/login/logind-session-device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/login/logind-session-device.c b/src/login/logind-session-device.c
index aac8535ab..8cac88344 100644
--- a/src/login/logind-session-device.c
+++ b/src/login/logind-session-device.c
@@ -531,7 +531,7 @@ int session_device_save(SessionDevice *sd) {
}
void session_device_attach_fd(SessionDevice *sd, int fd, bool active) {
- assert(fd > 0);
+ assert(fd >= 0);
assert(sd);
assert(sd->fd < 0);
assert(!sd->active);