summaryrefslogtreecommitdiffstats
path: root/archive-zip.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-06-06 21:19:04 +0200
committerJunio C Hamano <gitster@pobox.com>2013-06-06 21:19:04 +0200
commitd4f6b5f51ce2c974c7630b5491562a21821c8fe4 (patch)
tree59323da68719f244d7c3366bbf07ca7a80f24429 /archive-zip.c
parentMerge branch 'rr/push-head' (diff)
parentarchive-zip:write_zip_entry: Remove second reset of size variable to zero. (diff)
downloadgit-d4f6b5f51ce2c974c7630b5491562a21821c8fe4.tar.xz
git-d4f6b5f51ce2c974c7630b5491562a21821c8fe4.zip
Merge branch 'sb/archive-zip-double-assignment-fix'
* sb/archive-zip-double-assignment-fix: archive-zip:write_zip_entry: Remove second reset of size variable to zero.
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 b2c4fe0e9f..4bde019bce 100644
--- a/archive-zip.c
+++ b/archive-zip.c
@@ -232,7 +232,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);