From 78ed0495cec5a077f3ee86c607fd71b17e5841f4 Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Mon, 21 Sep 2015 19:05:33 +0200 Subject: [PATCH] pcsx2:CDVD: init members in constructor --- pcsx2/CDVD/CsoFileReader.h | 4 ++++ pcsx2/CDVD/GzippedFileReader.cpp | 1 + pcsx2/CDVD/IsoFS/IsoFS.cpp | 1 + 3 files changed, 6 insertions(+) diff --git a/pcsx2/CDVD/CsoFileReader.h b/pcsx2/CDVD/CsoFileReader.h index 04f5c19ab1..dca3ffe890 100644 --- a/pcsx2/CDVD/CsoFileReader.h +++ b/pcsx2/CDVD/CsoFileReader.h @@ -37,8 +37,12 @@ class CsoFileReader : public AsyncFileReader DeclareNoncopyableObject(CsoFileReader); public: CsoFileReader(void) : + m_frameSize(0), + m_frameShift(0), + m_indexShift(0), m_readBuffer(0), m_zlibBuffer(0), + m_zlibBufferFrame(0), m_index(0), m_totalSize(0), m_src(0), diff --git a/pcsx2/CDVD/GzippedFileReader.cpp b/pcsx2/CDVD/GzippedFileReader.cpp index 7c2dcc40db..536a59ed40 100644 --- a/pcsx2/CDVD/GzippedFileReader.cpp +++ b/pcsx2/CDVD/GzippedFileReader.cpp @@ -178,6 +178,7 @@ static wxString iso2indexname(const wxString& isoname) { } GzippedFileReader::GzippedFileReader(void) : + mBytesRead(0), m_pIndex(0), m_zstates(0), m_src(0), diff --git a/pcsx2/CDVD/IsoFS/IsoFS.cpp b/pcsx2/CDVD/IsoFS/IsoFS.cpp index 47c4906933..80a215ccd4 100644 --- a/pcsx2/CDVD/IsoFS/IsoFS.cpp +++ b/pcsx2/CDVD/IsoFS/IsoFS.cpp @@ -105,6 +105,7 @@ IsoDirectory::IsoDirectory(SectorSource& r) IsoDirectory::IsoDirectory(SectorSource& r, IsoFileDescriptor directoryEntry) : internalReader(r) { + m_fstype = FStype_ISO9660; Init(directoryEntry); }