diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-02-26 18:45:28 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-02-26 18:45:28 +0100 |
commit | 3ccf323dfd70eaf010ad51f416af9414ae24486f (patch) | |
tree | 49d8879b55a72a16c7391765dbeb52fa71e9cf4b /src/journal-remote/journal-upload.c | |
parent | logind: make sure we don't trip up on half-initialized session devices (diff) | |
download | systemd-3ccf323dfd70eaf010ad51f416af9414ae24486f.tar.xz systemd-3ccf323dfd70eaf010ad51f416af9414ae24486f.zip |
journal-upload: make use of safe_close() where appropriate
Diffstat (limited to 'src/journal-remote/journal-upload.c')
-rw-r--r-- | src/journal-remote/journal-upload.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/journal-remote/journal-upload.c b/src/journal-remote/journal-upload.c index 0b74ca98a7..3094785618 100644 --- a/src/journal-remote/journal-upload.c +++ b/src/journal-remote/journal-upload.c @@ -328,9 +328,7 @@ static size_t fd_input_callback(void *buf, size_t size, size_t nmemb, void *user static void close_fd_input(Uploader *u) { assert(u); - if (u->input >= 0) - close_nointr(u->input); - u->input = -1; + u->input = safe_close(u->input); u->timeout = 0; } |