From: Stefan Beller Date: Sun, 26 May 2013 19:11:35 +0000 (+0200) Subject: archive-zip:write_zip_entry: Remove second reset of size variable to zero. X-Git-Tag: v1.8.3.4~29^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/be706c6f4f99ec04c4104bda8820513276af8129 archive-zip:write_zip_entry: Remove second reset of size variable to zero. It is set to zero just 3 lines before. Reported by cppcheck. Signed-off-by: Stefan Beller Signed-off-by: Junio C Hamano --- diff --git a/archive-zip.c b/archive-zip.c index a8d119305f..04c2f8eed7 100644 --- a/archive-zip.c +++ b/archive-zip.c @@ -231,7 +231,6 @@ static int write_zip_entry(struct archiver_args *args, size = 0; compressed_size = 0; buffer = NULL; - size = 0; } else if (S_ISREG(mode) || S_ISLNK(mode)) { enum object_type type = sha1_object_info(sha1, &size);