mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-11-10 06:31:47 +00:00
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)
|
||||
{
|
||||
_putenv(va("%s=%s", name, value));
|
||||
if(value)
|
||||
_putenv(va("%s=%s", name, value));
|
||||
else
|
||||
_putenv(va("%s=", name));
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue