Make Sys_SetEnv behave alike on Windows and Linux
This commit is contained in:
1 parent
6b82f4fd09
commit
5769bed4a3
1 file changed
+4
-1
@@ -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));
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in new issue
Block a user