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 7a7aee81708ed26f29f9e70e6381b45086d2e4da..bdeeff67788363d65a16e38fcab7094c08c026be 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;