{"thread":{"id":"33941","subject":"[PATCH] archive-zip:write_zip_entry: Remove second reset of size variable to zero.","startedAt":"2013-05-26T19:11:35Z","lastAt":"2013-05-26T19:11:35Z","messageCount":1,"participants":["Stefan Beller"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"218578","messageId":"1369595495-8306-1-git-send-email-stefanbeller@googlemail.com","threadId":"33941","inReplyTo":null,"subject":"[PATCH] archive-zip:write_zip_entry: Remove second reset of size variable to zero.","fromName":"Stefan Beller","fromEmail":"stefanbeller@googlemail.com","sentAt":"2013-05-26T19:11:35Z","receivedAt":"2013-05-26T19:11:35Z","isPatch":true,"sender":{"key":"stefanbeller@gmail.com","avatar":"https://avatars.githubusercontent.com/u/455868?v=4"},"body":"It is set to zero just 3 lines before.\nReported by cppcheck.\n\nSigned-off-by: Stefan Beller <stefanbeller@googlemail.com>\n---\n archive-zip.c | 1 -\n 1 file changed, 1 deletion(-)\n\ndiff --git a/archive-zip.c b/archive-zip.c\nindex b2c4fe0..4bde019 100644\n--- a/archive-zip.c\n+++ b/archive-zip.c\n@@ -232,7 +232,6 @@ static int write_zip_entry(struct archiver_args *args,\n \t\tsize = 0;\n \t\tcompressed_size = 0;\n \t\tbuffer = NULL;\n-\t\tsize = 0;\n \t} else if (S_ISREG(mode) || S_ISLNK(mode)) {\n \t\tenum object_type type = sha1_object_info(sha1, &size);\n \n-- \n1.8.3\n"}]}