projects
/
git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92758dd
)
archive-zip:write_zip_entry: Remove second reset of size variable to zero.
author
Stefan Beller
<stefanbeller@googlemail.com>
Sun, 26 May 2013 19:11:35 +0000
(21:11 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 29 May 2013 19:54:39 +0000
(12:54 -0700)
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>
archive-zip.c
patch
|
blob
|
history
diff --git
a/archive-zip.c
b/archive-zip.c
index a8d119305ff5c0161e7239a8ad70a92c76122631..04c2f8eed7fba815a28642ccac3471feef62850b 100644
(file)
--- a/
archive-zip.c
+++ b/
archive-zip.c
@@
-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);