[systemd-commits] src/journal-remote

Lukas Nykryn lnykryn at kemper.freedesktop.org
Wed Aug 20 06:13:27 PDT 2014


 src/journal-remote/journal-upload.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e1ad6e245dcf63faa8f183063eb97678f4f9ac94
Author: Lukas Nykryn <lnykryn at redhat.com>
Date:   Wed Aug 20 15:13:06 2014 +0200

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

diff --git a/src/journal-remote/journal-upload.c b/src/journal-remote/journal-upload.c
index 7a7aee8..bdeeff6 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;



More information about the systemd-commits mailing list