From 717f7fae21f67f0c5ebd370754bf1f2e69000173 Mon Sep 17 00:00:00 2001 From: Lwisce Zeng Date: Mon, 15 Apr 2024 14:52:38 +0800 Subject: [PATCH] Fix Uninitialized variable warning --- contrib/minizip/unzip.c | 1 + contrib/minizip/zip.c | 1 + 2 files changed, 2 insertions(+) diff --git a/contrib/minizip/unzip.c b/contrib/minizip/unzip.c index a2ee14bdd..745efa7f2 100644 --- a/contrib/minizip/unzip.c +++ b/contrib/minizip/unzip.c @@ -685,6 +685,7 @@ extern unzFile ZEXPORT unzOpen2_64(const void *path, zlib_filefunc64_32_def_fill.zfile_func64 = *pzlib_filefunc_def; zlib_filefunc64_32_def_fill.ztell32_file = NULL; zlib_filefunc64_32_def_fill.zseek32_file = NULL; + zlib_filefunc64_32_def_fill.zopen32_file = NULL; return unzOpenInternal(path, &zlib_filefunc64_32_def_fill, 1); } else diff --git a/contrib/minizip/zip.c b/contrib/minizip/zip.c index cbb250843..c5c975175 100644 --- a/contrib/minizip/zip.c +++ b/contrib/minizip/zip.c @@ -1136,6 +1136,7 @@ extern zipFile ZEXPORT zipOpen2_64(const void *pathname, int append, zipcharpc* zlib_filefunc64_32_def_fill.zfile_func64 = *pzlib_filefunc_def; zlib_filefunc64_32_def_fill.ztell32_file = NULL; zlib_filefunc64_32_def_fill.zseek32_file = NULL; + zlib_filefunc64_32_def_fill.zopen32_file = NULL; return zipOpen3(pathname, append, globalcomment, &zlib_filefunc64_32_def_fill); } else