summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2020-09-19 15:45:00 +0200
committerHugo Locurcio <hugo.locurcio@hugo.pro>2020-09-19 15:45:00 +0200
commit0b65342fd2daddb91dcbcf84dff130856bde96df (patch)
tree3bc7737e4988d5590b937d69cdd813218f354ade
parent7fff7b863cb27c414c7467fc6540cb435bd5a411 (diff)
Fix crash when opening a ZIP data pack
Co-authored-by: bruvzg <7645683+bruvzg@users.noreply.github.com>
-rw-r--r--core/io/file_access_zip.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/io/file_access_zip.h b/core/io/file_access_zip.h
index 2cce24e878..c251b3c424 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;