diff options
| -rw-r--r-- | src/pulsecore/core-util.c | 6 | 
1 files changed, 4 insertions, 2 deletions
| diff --git a/src/pulsecore/core-util.c b/src/pulsecore/core-util.c index eeb81a60..1daa46eb 100644 --- a/src/pulsecore/core-util.c +++ b/src/pulsecore/core-util.c @@ -2484,9 +2484,11 @@ void pa_unset_env_recorded(void) {      /* This is not thread-safe */      for (;;) { -        char *s = NULL; +        char *s; -        if (!(recorded_env = pa_strlist_pop(recorded_env, &s))) +        recorded_env = pa_strlist_pop(recorded_env, &s); + +        if (!s)              break;          unsetenv(s); | 
