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 9034dc32..a3c60130 100644 --- a/src/pulsecore/core-util.c +++ b/src/pulsecore/core-util.c @@ -2474,9 +2474,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);  | 
