Commit 2c92c8e85a4f5a1f6fd488da3dfc947c58fbec2e

Sylvain Becker 2019-04-23T14:24:58

Android: add static variable initialization in non blocking event loop

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/video/android/SDL_androidevents.c b/src/video/android/SDL_androidevents.c
index 24a09ff..de560c9 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) {