[quake3-commits] r1734 - trunk/code/qcommon

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Fri Nov 6 05:50:16 EST 2009


Author: thilo
Date: 2009-11-06 05:50:16 -0500 (Fri, 06 Nov 2009)
New Revision: 1734

Modified:
   trunk/code/qcommon/common.c
Log:
Use new Sys_SetEnv here


Modified: trunk/code/qcommon/common.c
===================================================================
--- trunk/code/qcommon/common.c	2009-11-05 20:29:26 UTC (rev 1733)
+++ trunk/code/qcommon/common.c	2009-11-06 10:50:16 UTC (rev 1734)
@@ -2362,15 +2362,7 @@
 	{
 		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)
 	{



More information about the quake3-commits mailing list