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>
Stefan Beller committed
May 26, 2013 at 21:11 UTC
be706c6f4f99ec04c4104bda8820513276af8129
1 file changed
-1
archive-zip.c
-1
@@ -231,7 +231,6 @@ static int write_zip_entry(struct archiver_args *args,
231
size = 0;
232
compressed_size = 0;
233
buffer = NULL;
234
- size = 0;
234
} else if (S_ISREG(mode) || S_ISLNK(mode)) {
235
enum object_type type = sha1_object_info(sha1, &size);
236