Use new Sys_SetEnv here

This commit is contained in:
Thilo Schulz 2009-11-06 10:50:16 +00:00
parent 568cf2732a
commit 4ba2452f83
1 changed files with 1 additions and 9 deletions

View File

@ -2362,15 +2362,7 @@ void Com_Setenv_f(void)
{
char *arg2 = Cmd_ArgsFrom(2);
#ifdef _WIN32
// windows already removes env variable if value is an empty string
_putenv(va("%s=%s", arg1, arg2));
#else
if(!*arg2)
unsetenv(arg1);
else
setenv(arg1, arg2, 1);
#endif
Sys_SetEnv(arg1, arg2);
}
else if(argc == 2)
{