forked from enlightenment/enlightenment
setenv - store all strings so they continue to work if putenv is used
This commit is contained in:
parent
2520c73d04
commit
d861d10042
|
@ -39,9 +39,6 @@ e_util_env_set(const char *var, const char *val)
|
|||
char buf[8192];
|
||||
|
||||
snprintf(buf, sizeof(buf), "%s=%s", var, val);
|
||||
if (getenv(var))
|
||||
putenv(buf);
|
||||
else
|
||||
putenv(strdup(buf));
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue