Merge "Initialize an uninitialized field in ijar"

This commit is contained in:
Shinichiro Hamaji 2016-05-02 19:00:42 +00:00 committed by Gerrit Code Review
commit a6da20e2d2
1 changed files with 1 additions and 0 deletions

View File

@ -846,6 +846,7 @@ u1* OutputZipFile::WriteLocalFileHeader(const char* filename, const u4 attr) {
memcpy(entry->file_name, filename, file_name_length_);
entry->extra_field_length = 0;
entry->extra_field = (const u1 *)"";
entry->crc32 = 0;
// Output the ZIP local_file_header:
put_u4le(q, LOCAL_FILE_HEADER_SIGNATURE);