Skip to content

Commit

Permalink
archive-zip:write_zip_entry: Remove second reset of size variable to …
Browse files Browse the repository at this point in the history
…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>
  • Loading branch information
stefanbeller authored and gitster committed May 29, 2013
1 parent 92758dd commit be706c6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion archive-zip.c
Expand Up @@ -231,7 +231,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);

Expand Down

0 comments on commit be706c6

Please sign in to comment.