all repos — mgba @ c8b04a2ca583d0f9f70f7bdff1c4d7d462e1ce4c

mGBA Game Boy Advance Emulator

Ensure rewind buffer is null if we are not enabling rewinding
Jeffrey Pfau jeffrey@endrift.com
Tue, 28 Jan 2014 06:52:46 -0800
commit

c8b04a2ca583d0f9f70f7bdff1c4d7d462e1ce4c

parent

48a3522fbc893fe0f30a008c5cdd51ed546afae0

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

jump to
M src/gba/gba-thread.csrc/gba/gba-thread.c

@@ -162,6 +162,8 @@ threadContext->rewindBufferNext = threadContext->rewindBufferInterval;

threadContext->rewindBufferSize = 0; if (threadContext->rewindBufferCapacity) { threadContext->rewindBuffer = calloc(threadContext->rewindBufferCapacity, sizeof(void*)); + } else { + threadContext->rewindBuffer = 0; } MutexInit(&threadContext->stateMutex);