From 243cd08c2a24e59d1be7a4e1d8faaa65231d8221 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Tue, 20 Dec 2016 18:04:31 -0800 Subject: [PATCH] GB: Properly initialize sramRealVf variable --- CHANGES | 1 + src/gb/gb.c | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGES b/CHANGES index 8269b4048..d4f26be64 100644 --- a/CHANGES +++ b/CHANGES @@ -26,6 +26,7 @@ Bugfixes: - GBA: Only unhalt CPU if appropriate bit is set in IE - GB: Fix crash when masking savedata - GB Audio: Fix serialization of channel 3 and NR52 properties + - GB: Properly initialize sramRealVf variable Misc: - PSP2: Improved controller rumble - GB, GBA: Prevent loading null ROMs diff --git a/src/gb/gb.c b/src/gb/gb.c index 6028db0ba..39ff04046 100644 --- a/src/gb/gb.c +++ b/src/gb/gb.c @@ -68,9 +68,10 @@ static void GBInit(void* cpu, struct mCPUComponent* component) { gb->model = GB_MODEL_AUTODETECT; - gb->biosVf = 0; - gb->romVf = 0; - gb->sramVf = 0; + gb->biosVf = NULL; + gb->romVf = NULL; + gb->sramVf = NULL; + gb->sramRealVf = NULL; gb->pristineRom = 0; gb->pristineRomSize = 0;