Skip to content
This repository was archived by the owner on Jul 2, 2019. It is now read-only.

Commit be706c6

Browse files
stefanbellergitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 92758dd commit be706c6

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

archive-zip.c

-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,6 @@ static int write_zip_entry(struct archiver_args *args,
231231
size = 0;
232232
compressed_size = 0;
233233
buffer = NULL;
234-
size = 0;
235234
} else if (S_ISREG(mode) || S_ISLNK(mode)) {
236235
enum object_type type = sha1_object_info(sha1, &size);
237236

0 commit comments

Comments
 (0)