mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-31 22:25:33 -04:00
Use setenv instead of putenv
In theory putenv could be used to handle freeing of strings yourself, but this was not done in PulseAudio. That leaves no advantages in using putenv. With setenv you're at the mercy of the implementation whether the strings leak, but at least that is better then a certain leak, as it was before.
This commit is contained in:
parent
051d82133f
commit
8d12ab9e63
1 changed files with 1 additions and 1 deletions
|
|
@ -2501,7 +2501,7 @@ void pa_set_env(const char *key, const char *value) {
|
|||
|
||||
/* This is not thread-safe */
|
||||
|
||||
putenv(pa_sprintf_malloc("%s=%s", key, value));
|
||||
setenv(key, value, 1);
|
||||
}
|
||||
|
||||
void pa_set_env_and_record(const char *key, const char *value) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue