SDL_CreateEnvironment() fills the environment with a non-zero parameter

This commit is contained in:
Sam Lantinga 2024-09-14 09:18:07 -07:00
parent 76c469910e
commit aa7357a14d
5 changed files with 9 additions and 9 deletions

View file

@ -40,7 +40,7 @@ static char **DuplicateEnvironment(const char *key0, ...)
va_list ap;
const char *keyN;
SDL_Environment *env = SDL_GetEnvironment();
SDL_Environment *new_env = SDL_CreateEnvironment(SDL_TRUE);
SDL_Environment *new_env = SDL_CreateEnvironment(SDL_FALSE);
char **result;
if (key0) {