From 7c3cb6e7f43e2e5ed60aeecb62d49cca765a7b6b Mon Sep 17 00:00:00 2001 From: Edward Rudd Date: Wed, 6 Mar 2013 10:37:27 -0500 Subject: [PATCH] move variable declaration to beginning of function --- src/thread/windows/SDL_sysmutex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/thread/windows/SDL_sysmutex.c b/src/thread/windows/SDL_sysmutex.c index 02883dcc4..78730ff64 100644 --- a/src/thread/windows/SDL_sysmutex.c +++ b/src/thread/windows/SDL_sysmutex.c @@ -79,12 +79,12 @@ SDL_mutexP(SDL_mutex * mutex) int SDL_TryLockMutex(SDL_mutex * mutex) { + int retval = 0; if (mutex == NULL) { SDL_SetError("Passed a NULL mutex"); return -1; } - int retval = 0; if (TryEnterCriticalSection(&mutex->cs) == 0) { retval = SDL_MUTEX_TIMEDOUT; }