Fix some uninitialized reads
Jeffrey Pfau jeffrey@endrift.com
Wed, 15 Oct 2014 02:13:46 -0700
1 files changed,
3 insertions(+),
0 deletions(-)
jump to
M
src/gba/gba.c
→
src/gba/gba.c
@@ -124,6 +124,7 @@ gba->debugger = 0;
GBAInterruptHandlerInit(&cpu->irqh); GBAMemoryInit(gba); + GBASavedataInit(&gba->memory.savedata, 0); gba->video.p = gba; GBAVideoInit(&gba->video);@@ -151,6 +152,8 @@
gba->logLevel = GBA_LOG_INFO | GBA_LOG_WARN | GBA_LOG_ERROR | GBA_LOG_FATAL; gba->biosChecksum = GBAChecksum(gba->memory.bios, SIZE_BIOS); + + gba->busyLoop = -1; } void GBADestroy(struct GBA* gba) {