Ensure rewind buffer is null if we are not enabling rewinding
Jeffrey Pfau jeffrey@endrift.com
Tue, 28 Jan 2014 06:52:46 -0800
1 files changed,
2 insertions(+),
0 deletions(-)
jump to
M
src/gba/gba-thread.c
→
src/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);