summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Lesinski <adamlesinski@google.com>2018-03-01 21:32:13 +0000
committerAdam Lesinski <adamlesinski@google.com>2018-03-01 21:33:49 +0000
commitb354dcef986938a77c96da98c388e34394df7e3d (patch)
treeaf358816e4b54866423191600db64f259cbc261b
parent45ee43b1acadc9635a547e41dcaf734f66678890 (diff)
downloadcore-b354dcef986938a77c96da98c388e34394df7e3d.tar.gz
Remove empty zip warning on host builds
Change-Id: Iaafe208930c316cc32f39ce2687be555b9eeb35f
-rw-r--r--libziparchive/zip_archive.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/libziparchive/zip_archive.cc b/libziparchive/zip_archive.cc
index f9f8c73d9..5e5e7afd1 100644
--- a/libziparchive/zip_archive.cc
+++ b/libziparchive/zip_archive.cc
@@ -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;
}