From f6f8dc1a22e0bca7cc9b8d04e302301012f5c66a Mon Sep 17 00:00:00 2001 From: Akash Date: Fri, 23 Oct 2015 20:36:02 +0530 Subject: [PATCH] CDVD: Initialze all class members CID 147025 (#1 of 1): Uninitialized pointer field (UNINIT_CTOR)8. uninit_member: Non-static class member m_current_count is not initialized in this constructor nor in any functions that it calls. --- pcsx2/CDVD/InputIsoFile.cpp | 3 +++ pcsx2/CDVD/IsoFileFormats.h | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pcsx2/CDVD/InputIsoFile.cpp b/pcsx2/CDVD/InputIsoFile.cpp index ca0b3dd010..e0012db3bc 100644 --- a/pcsx2/CDVD/InputIsoFile.cpp +++ b/pcsx2/CDVD/InputIsoFile.cpp @@ -179,7 +179,10 @@ void InputIsoFile::_init() m_read_inprogress = false; m_read_count = 0; + ReadUnit = 0; + m_current_lsn = -1; m_read_lsn = -1; + m_reader = NULL; } // Tests the specified filename to see if it is a supported ISO type. This function typically diff --git a/pcsx2/CDVD/IsoFileFormats.h b/pcsx2/CDVD/IsoFileFormats.h index c390fb510a..d528afdbe9 100644 --- a/pcsx2/CDVD/IsoFileFormats.h +++ b/pcsx2/CDVD/IsoFileFormats.h @@ -48,7 +48,6 @@ protected: AsyncFileReader* m_reader; s32 m_current_lsn; - uint m_current_count; isoType m_type; u32 m_flags;