summaryrefslogtreecommitdiff
path: root/archive-zip.c
diff options
context:
space:
mode:
authorStefan Beller <stefanbeller@googlemail.com>2013-05-26 19:11:35 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-05-29 19:54:39 (GMT)
commitbe706c6f4f99ec04c4104bda8820513276af8129 (patch)
treedf6cc86c70397700d72afc804b01c785ea644599 /archive-zip.c
parent92758dd2a2de94c90c0697ef0e8174c3543a47f9 (diff)
downloadgit-be706c6f4f99ec04c4104bda8820513276af8129.zip
git-be706c6f4f99ec04c4104bda8820513276af8129.tar.gz
git-be706c6f4f99ec04c4104bda8820513276af8129.tar.bz2
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 <stefanbeller@googlemail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'archive-zip.c')
-rw-r--r--archive-zip.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/archive-zip.c b/archive-zip.c
index a8d1193..04c2f8e 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);