From 2c92c8e85a4f5a1f6fd488da3dfc947c58fbec2e Mon Sep 17 00:00:00 2001 From: Sylvain Becker Date: Tue, 23 Apr 2019 14:24:58 +0200 Subject: [PATCH] Android: add static variable initialization in non blocking event loop --- src/video/android/SDL_androidevents.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/android/SDL_androidevents.c b/src/video/android/SDL_androidevents.c index 24a09ffd89f1e..de560c96ab248 100644 --- a/src/video/android/SDL_androidevents.c +++ b/src/video/android/SDL_androidevents.c @@ -142,7 +142,7 @@ void Android_PumpEvents_NonBlocking(_THIS) { SDL_VideoData *videodata = (SDL_VideoData *)_this->driverdata; - static int backup_context; + static int backup_context = 0; if (videodata->isPaused) {