1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00

Fix env variable scope

This commit is contained in:
Mathieu Schroeter 2018-08-15 07:31:10 +02:00
parent 8c7f1ed329
commit 65f3908747

View File

@ -759,7 +759,7 @@ DoInit (int argc, char * argv[], bool & exit)
#ifdef __LINUX__ #ifdef __LINUX__
if (!getenv ("ALSA_CONFIG_DIR")) if (!getenv ("ALSA_CONFIG_DIR"))
{ {
char env[256]; static char env[256];
snprintf (env, sizeof (env), "ALSA_CONFIG_DIR=/usr/share/alsa"); snprintf (env, sizeof (env), "ALSA_CONFIG_DIR=/usr/share/alsa");
putenv (env); putenv (env);
} }