Initialize memory->eventDiff; fixes a valgrind warning

This commit is contained in:
Jeffrey Pfau 2014-01-31 23:24:38 -08:00
parent 2f39a57567
commit 2cd4bb3cff
1 changed files with 1 additions and 0 deletions

View File

@ -47,6 +47,7 @@ void GBAMemoryInit(struct GBAMemory* memory) {
} }
memory->activeDMA = -1; memory->activeDMA = -1;
memory->nextDMA = INT_MAX; memory->nextDMA = INT_MAX;
memory->eventDiff = 0;
if (!memory->wram || !memory->iwram) { if (!memory->wram || !memory->iwram) {
GBAMemoryDeinit(memory); GBAMemoryDeinit(memory);