|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
From e1ad6e245dcf63faa8f183063eb97678f4f9ac94 Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
From: Lukas Nykryn <lnykryn@redhat.com>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Date: Wed, 20 Aug 2014 15:13:06 +0200
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Subject: [PATCH] journal-upload: make sure that 'r' is initialized
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
---
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
src/journal-remote/journal-upload.c | 2 +-
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
diff --git a/src/journal-remote/journal-upload.c b/src/journal-remote/journal-upload.c
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
index 7a7aee8170..bdeeff6778 100644
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
--- a/src/journal-remote/journal-upload.c
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+++ b/src/journal-remote/journal-upload.c
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
@@ -324,7 +324,7 @@ static int dispatch_fd_input(sd_event_source *event,
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
}
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
static int open_file_for_upload(Uploader *u, const char *filename) {
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
- int fd, r;
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ int fd, r = 0;
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
if (streq(filename, "-"))
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
fd = STDIN_FILENO;
|