From 77b9f2c15e9cdfeb5d2c2ad762cd8f3de44e7db8 Mon Sep 17 00:00:00 2001 From: Jonathan Li Date: Sun, 24 Jul 2016 22:25:23 +0100 Subject: [PATCH] pcsx2: Initialise g_Conf->Mcd[].Type Fixes a valgrind warning. Folder memory cards are autodetected later, so it's safe to set it to a file memory card. --- pcsx2/gui/AppConfig.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pcsx2/gui/AppConfig.cpp b/pcsx2/gui/AppConfig.cpp index df7f0a9001..28344a5c12 100644 --- a/pcsx2/gui/AppConfig.cpp +++ b/pcsx2/gui/AppConfig.cpp @@ -556,6 +556,9 @@ AppConfig::AppConfig() { Mcd[slot].Enabled = !FileMcd_IsMultitapSlot(slot); // enables main 2 slots Mcd[slot].Filename = FileMcd_GetDefaultName( slot ); + + // Folder memory card is autodetected later. + Mcd[slot].Type = MemoryCardType::MemoryCard_File; } GzipIsoIndexTemplate = L"$(f).pindex.tmp";