diff --git a/src/thread/vita/SDL_syssem.c b/src/thread/vita/SDL_syssem.c index 0082e0005..781e9e906 100644 --- a/src/thread/vita/SDL_syssem.c +++ b/src/thread/vita/SDL_syssem.c @@ -87,8 +87,8 @@ int SDL_SemWaitTimeout(SDL_sem *sem, Uint32 timeout) } if (timeout == 0) { - res = sceKernelPollSema(sem->semid, 1); - if (res < 0) { + int res2 = sceKernelPollSema(sem->semid, 1); + if (res2 < 0) { return SDL_MUTEX_TIMEDOUT; } return 0;