1
1
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:
Lukas Nykryn 2014-08-20 15:13:06 +02:00
parent 081e009bef
commit e1ad6e245d

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;