diff options
Diffstat (limited to 'src/login/logind-seat.c')
-rw-r--r-- | src/login/logind-seat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/login/logind-seat.c b/src/login/logind-seat.c index 863b8cc3b4..65323f6c92 100644 --- a/src/login/logind-seat.c +++ b/src/login/logind-seat.c @@ -167,7 +167,7 @@ int seat_load(Seat *s) { static int vt_allocate(unsigned vtnr) { char p[sizeof("/dev/tty") + DECIMAL_STR_MAX(unsigned)]; - _cleanup_close_ int fd = -1; + _cleanup_close_ int fd = -EBADF; assert(vtnr >= 1); |