mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-24 02:03:54 +03:00
journal-upload: make sure that 'r' is initialized
This commit is contained in:
parent
081e009bef
commit
e1ad6e245d
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user