git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] archive-zip:write_zip_entry: Remove second reset of size variable to zero.
@ 2013-05-26 19:11 Stefan Beller
  0 siblings, 0 replies; only message in thread
From: Stefan Beller @ 2013-05-26 19:11 UTC (permalink / raw)
  To: git; +Cc: Stefan Beller

It is set to zero just 3 lines before.
Reported by cppcheck.

Signed-off-by: Stefan Beller <stefanbeller@googlemail.com>
---
 archive-zip.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/archive-zip.c b/archive-zip.c
index b2c4fe0..4bde019 100644
--- a/archive-zip.c
+++ b/archive-zip.c
@@ -232,7 +232,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);
 
-- 
1.8.3

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-05-26 19:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-26 19:11 [PATCH] archive-zip:write_zip_entry: Remove second reset of size variable to zero Stefan Beller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).