mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-10-04 07:48:36 +00:00
journal-upload: make sure that 'r' is initialized
This commit is contained in:
@@ -324,7 +324,7 @@ static int dispatch_fd_input(sd_event_source *event,
|
||||
}
|
||||
|
||||
static int open_file_for_upload(Uploader *u, const char *filename) {
|
||||
int fd, r;
|
||||
int fd, r = 0;
|
||||
|
||||
if (streq(filename, "-"))
|
||||
fd = STDIN_FILENO;
|
||||
|
||||
Reference in New Issue
Block a user