Skip to content

Commit 3ccf323

Browse files
committed
journal-upload: make use of safe_close() where appropriate
1 parent 4d219f5 commit 3ccf323

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/journal-remote/journal-upload.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -328,9 +328,7 @@ static size_t fd_input_callback(void *buf, size_t size, size_t nmemb, void *user
328328
static void close_fd_input(Uploader *u) {
329329
assert(u);
330330

331-
if (u->input >= 0)
332-
close_nointr(u->input);
333-
u->input = -1;
331+
u->input = safe_close(u->input);
334332
u->timeout = 0;
335333
}
336334

0 commit comments

Comments
 (0)