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

Commit d4f6b5f

Browse files
committed
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.
2 parents 36a22e4 + be706c6 commit d4f6b5f

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
@@ -232,7 +232,6 @@ static int write_zip_entry(struct archiver_args *args,
232232
size = 0;
233233
compressed_size = 0;
234234
buffer = NULL;
235-
size = 0;
236235
} else if (S_ISREG(mode) || S_ISLNK(mode)) {
237236
enum object_type type = sha1_object_info(sha1, &size);
238237

0 commit comments

Comments
 (0)