Skip to content

Commit 509152d

Browse files
committed
Merge branch 'sb/archive-zip-double-assignment-fix' into maint
* sb/archive-zip-double-assignment-fix: archive-zip:write_zip_entry: Remove second reset of size variable to zero.
2 parents 6741edc + be706c6 commit 509152d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

archive-zip.c

Lines changed: 0 additions & 1 deletion
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)