From e04855ce0068dc47791a25a3644a88a5fb82746d Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Sat, 19 Sep 2020 15:45:00 +0200 Subject: [PATCH] Fix crash when opening a ZIP data pack Co-authored-by: bruvzg <7645683+bruvzg@users.noreply.github.com> (cherry picked from commit 0b65342fd2daddb91dcbcf84dff130856bde96df) --- core/io/file_access_zip.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/io/file_access_zip.h b/core/io/file_access_zip.h index 17216cc0a60..ec77d6e74d4 100644 --- a/core/io/file_access_zip.h +++ b/core/io/file_access_zip.h @@ -84,8 +84,7 @@ public: }; class FileAccessZip : public FileAccess { - - unzFile zfile; + unzFile zfile = nullptr; unz_file_info64 file_info; mutable bool at_eof;