mirror of
https://github.com/systemd/systemd.git
synced 2026-08-04 23:20:32 +00:00
journal-upload: make sure that 'r' is initialized
This commit is contained in:
Notes:
Lennart Poettering
2014-10-24 17:00:43 +02:00
Backport: bugfix
@@ -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