diff --git a/code/qcommon/common.c b/code/qcommon/common.c index b24e4cec..aae81bda 100644 --- a/code/qcommon/common.c +++ b/code/qcommon/common.c @@ -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) {