src/audio/esd/SDL_esdaudio.c
changeset 3581 15eea7a1fa97
parent 3162 dc1eb82ffdaa
child 3697 f7b03b6838cb
     1.1 --- a/src/audio/esd/SDL_esdaudio.c	Wed Dec 16 08:17:05 2009 +0000
     1.2 +++ b/src/audio/esd/SDL_esdaudio.c	Wed Dec 16 10:59:51 2009 +0000
     1.3 @@ -321,9 +321,7 @@
     1.4          int connection = 0;
     1.5  
     1.6          /* Don't start ESD if it's not running */
     1.7 -        if (SDL_getenv("ESD_NO_SPAWN") == NULL) {
     1.8 -            SDL_putenv("ESD_NO_SPAWN=1");
     1.9 -        }
    1.10 +        SDL_setenv("ESD_NO_SPAWN", "1", 0);
    1.11  
    1.12          connection = SDL_NAME(esd_open_sound) (NULL);
    1.13          if (connection < 0) {