Make Sys_SetEnv behave alike on Windows and Linux
This commit is contained in:
parent
6b82f4fd09
commit
5769bed4a3
1 changed files with 4 additions and 1 deletions
|
@ -772,7 +772,10 @@ set/unset environment variables (empty value removes it)
|
||||||
*/
|
*/
|
||||||
void Sys_SetEnv(const char *name, const char *value)
|
void Sys_SetEnv(const char *name, const char *value)
|
||||||
{
|
{
|
||||||
_putenv(va("%s=%s", name, value));
|
if(value)
|
||||||
|
_putenv(va("%s=%s", name, value));
|
||||||
|
else
|
||||||
|
_putenv(va("%s=", name));
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue