chiark / gitweb /
journal-upload: make sure that 'r' is initialized
authorLukas Nykryn <lnykryn@redhat.com>
Wed, 20 Aug 2014 13:13:06 +0000 (15:13 +0200)
committerLukas Nykryn <lnykryn@redhat.com>
Wed, 20 Aug 2014 13:13:06 +0000 (15:13 +0200)
src/journal-remote/journal-upload.c

index 7a7aee8..bdeeff6 100644 (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;