зеркало из https://github.com/microsoft/git.git
archive-zip:write_zip_entry: Remove second reset of size variable to 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>
This commit is contained in:
Родитель
92758dd2a2
Коммит
be706c6f4f
|
@ -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);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче