]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Issue #631: Move 'r' into an inner scope to fix shadowing
authorTim Kientzle <kientzle@acm.org>
Fri, 1 Jan 2016 22:25:16 +0000 (14:25 -0800)
committerTim Kientzle <kientzle@acm.org>
Fri, 1 Jan 2016 22:25:16 +0000 (14:25 -0800)
libarchive/archive_write_set_format_warc.c

index a761d352632d18732ced257269c11a0d2aaa8f40..81beb75fda11a3d81c12ff0442bc48d89510e3ed 100644 (file)
@@ -182,11 +182,11 @@ _warc_header(struct archive_write *a, struct archive_entry *entry)
 {
        struct warc_s *w = a->format_data;
        struct archive_string hdr;
-       ssize_t r;
 #define MAX_HDR_SIZE 512
 
        /* check whether warcinfo record needs outputting */
        if (!w->omit_warcinfo) {
+               ssize_t r;
                warc_essential_hdr_t wi = {
                        WT_INFO,
                        /*uri*/NULL,