journal-upload: make sure that 'r' is initialized

This commit is contained in:
Lukas Nykryn
2014-08-20 15:13:06 +02:00
parent 081e009bef
commit e1ad6e245d
Notes: Lennart Poettering 2014-10-24 17:00:43 +02:00
Backport: bugfix

View File

@@ -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;