From 4ba2452f8302cc041a15b2c8fd697e296d22ba19 Mon Sep 17 00:00:00 2001 From: Thilo Schulz Date: Fri, 6 Nov 2009 10:50:16 +0000 Subject: [PATCH] Use new Sys_SetEnv here --- code/qcommon/common.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) 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) {