From c7b323e95d4f62c7828fcf7ced1616b60748a901 Mon Sep 17 00:00:00 2001 From: Tim Kientzle Date: Fri, 1 Jan 2016 14:25:16 -0800 Subject: [PATCH] Issue #631: Move 'r' into an inner scope to fix shadowing --- libarchive/archive_write_set_format_warc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libarchive/archive_write_set_format_warc.c b/libarchive/archive_write_set_format_warc.c index a761d3526..81beb75fd 100644 --- a/libarchive/archive_write_set_format_warc.c +++ b/libarchive/archive_write_set_format_warc.c @@ -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, -- 2.47.2