Merge "Remove empty zip warning on host builds"

This commit is contained in:
Treehugger Robot 2018-03-02 02:07:00 +00:00 committed by Gerrit Code Review
commit fd42c09813
1 changed files with 2 additions and 0 deletions

View File

@ -224,7 +224,9 @@ static int32_t MapCentralDirectory0(const char* debug_file_name, ZipArchive* arc
return kInvalidOffset;
}
if (eocd->num_records == 0) {
#if defined(__ANDROID__)
ALOGW("Zip: empty archive?");
#endif
return kEmptyArchive;
}