summaryrefslogtreecommitdiffstats
path: root/minzip
diff options
context:
space:
mode:
authorthat <github@that.at>2015-08-30 12:08:05 +0200
committerDees Troy <dees_troy@teamw.in>2015-10-15 16:10:53 +0200
commit5064048ec3039cb11be545c975b67a997f054dde (patch)
treef587d45f251ac196c266c1b1de87aa758c07c55f /minzip
parentUnicode for temperature (diff)
downloadandroid_bootable_recovery-5064048ec3039cb11be545c975b67a997f054dde.tar
android_bootable_recovery-5064048ec3039cb11be545c975b67a997f054dde.tar.gz
android_bootable_recovery-5064048ec3039cb11be545c975b67a997f054dde.tar.bz2
android_bootable_recovery-5064048ec3039cb11be545c975b67a997f054dde.tar.lz
android_bootable_recovery-5064048ec3039cb11be545c975b67a997f054dde.tar.xz
android_bootable_recovery-5064048ec3039cb11be545c975b67a997f054dde.tar.zst
android_bootable_recovery-5064048ec3039cb11be545c975b67a997f054dde.zip
Diffstat (limited to 'minzip')
-rw-r--r--minzip/Zip.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/minzip/Zip.c b/minzip/Zip.c
index 40712e03a..c6272509f 100644
--- a/minzip/Zip.c
+++ b/minzip/Zip.c
@@ -427,6 +427,8 @@ int mzOpenZipArchive(unsigned char* addr, size_t length, ZipArchive* pArchive)
{
int err;
+ memset(pArchive, 0, sizeof(ZipArchive));
+
if (length < ENDHDR) {
err = -1;
LOGV("File '%s' too small to be zip (%zd)\n", fileName, map.length);