summaryrefslogtreecommitdiff
path: root/src/userdb/userwork.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/userdb/userwork.c')
-rw-r--r--src/userdb/userwork.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/userdb/userwork.c b/src/userdb/userwork.c
index 21a869df1b..9fccadc950 100644
--- a/src/userdb/userwork.c
+++ b/src/userdb/userwork.c
@@ -503,7 +503,7 @@ static int run(int argc, char *argv[]) {
start_time = now(CLOCK_MONOTONIC);
for (;;) {
- _cleanup_close_ int fd = -1;
+ _cleanup_close_ int fd = -EBADF;
usec_t n;
/* Exit the worker in regular intervals, to flush out all memory use */