diff options
author | Lukas Nykryn <lnykryn@redhat.com> | 2014-08-20 15:13:06 +0200 |
---|---|---|
committer | Lukas Nykryn <lnykryn@redhat.com> | 2014-08-20 15:13:06 +0200 |
commit | e1ad6e245dcf63faa8f183063eb97678f4f9ac94 (patch) | |
tree | cb654515a922882d6074124a32f8413ec008015b /src | |
parent | 081e009bef5a09c986bfabdf46e96810afaed1c3 (diff) |
journal-upload: make sure that 'r' is initialized
Diffstat (limited to 'src')
-rw-r--r-- | src/journal-remote/journal-upload.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal-remote/journal-upload.c b/src/journal-remote/journal-upload.c index 7a7aee8170..bdeeff6778 100644 --- a/src/journal-remote/journal-upload.c +++ b/src/journal-remote/journal-upload.c @@ -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; |