mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-19 17:58:13 +00:00
Fixed infinite recursion at startup on Android
This commit is contained in:
@@ -122,7 +122,12 @@ SDL_Environment *SDL_CreateEnvironment(bool populated)
|
||||
#else
|
||||
#ifdef SDL_PLATFORM_ANDROID
|
||||
// Make sure variables from the application manifest are available
|
||||
Android_JNI_GetManifestEnvironmentVariables();
|
||||
static bool initializing;
|
||||
if (!initializing) {
|
||||
initializing = true;
|
||||
Android_JNI_GetManifestEnvironmentVariables();
|
||||
initializing = false;
|
||||
}
|
||||
#endif
|
||||
char **strings = environ;
|
||||
if (strings) {
|
||||
|
Reference in New Issue
Block a user