]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/journal/journald-console.c
tree-wide: use -EBADF for fd initialization
[thirdparty/systemd.git] / src / journal / journald-console.c
index 2035e2d9b6962cd9a3fb8d71347b7928cb31bf97..c8a3e18360f208e802eb53c69fe2d92353d39ef4 100644 (file)
@@ -43,7 +43,7 @@ void server_forward_console(
         char tbuf[STRLEN("[] ") + DECIMAL_STR_MAX(ts.tv_sec) + DECIMAL_STR_MAX(ts.tv_nsec)-3 + 1];
         char header_pid[STRLEN("[]: ") + DECIMAL_STR_MAX(pid_t)];
         _cleanup_free_ char *ident_buf = NULL;
-        _cleanup_close_ int fd = -1;
+        _cleanup_close_ int fd = -EBADF;
         const char *tty;
         int n = 0;