From 0b65342fd2daddb91dcbcf84dff130856bde96df 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> --- core/io/file_access_zip.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/io/file_access_zip.h b/core/io/file_access_zip.h index 2cce24e8780..c251b3c4244 100644 --- a/core/io/file_access_zip.h +++ b/core/io/file_access_zip.h @@ -79,7 +79,7 @@ public: }; class FileAccessZip : public FileAccess { - unzFile zfile; + unzFile zfile = nullptr; unz_file_info64 file_info; mutable bool at_eof;