all repos — mgba @ 1dd82f21d915a3450c0254baff6fd2324c241af2

mGBA Game Boy Advance Emulator

GBA: Fix unintialized stack variable
Jeffrey Pfau jeffrey@endrift.com
Wed, 08 Apr 2015 21:45:46 -0700
commit

1dd82f21d915a3450c0254baff6fd2324c241af2

parent

97607452e2b2f4a989c1b297339c20cf8f1bfcf3

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/gba/supervisor/overrides.csrc/gba/supervisor/overrides.c

@@ -156,7 +156,7 @@ bool GBAOverrideFind(const struct Configuration* config, struct GBACartridgeOverride* override) {

override->savetype = SAVEDATA_AUTODETECT; override->hardware = HW_NONE; override->idleLoop = IDLE_LOOP_NONE; - bool found; + bool found = false; if (override->id[0] == 'F') { // Classic NES Series