summaryrefslogtreecommitdiff
path: root/src/journal-remote
diff options
context:
space:
mode:
authorLukas Nykryn <lnykryn@redhat.com>2014-08-20 15:13:06 +0200
committerLukas Nykryn <lnykryn@redhat.com>2014-08-20 15:13:06 +0200
commite1ad6e245dcf63faa8f183063eb97678f4f9ac94 (patch)
treecb654515a922882d6074124a32f8413ec008015b /src/journal-remote
parent081e009bef5a09c986bfabdf46e96810afaed1c3 (diff)
journal-upload: make sure that 'r' is initialized
Diffstat (limited to 'src/journal-remote')
-rw-r--r--src/journal-remote/journal-upload.c2
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;