Преглед изворни кода

Android: add static variable initialization in non blocking event loop

Sylvain Becker пре 6 година
родитељ
комит
2c92c8e85a
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/video/android/SDL_androidevents.c

+ 1 - 1
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) {