Make Sys_SetEnv behave alike on Windows and Linux

This commit is contained in:
Thilo Schulz 2011-04-18 00:39:15 +00:00
parent 6b82f4fd09
commit 5769bed4a3

View file

@ -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));
}
/*