[quake3-commits] r1943 - trunk/code/sys

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sun Apr 17 20:39:15 EDT 2011


Author: thilo
Date: 2011-04-17 20:39:15 -0400 (Sun, 17 Apr 2011)
New Revision: 1943

Modified:
   trunk/code/sys/sys_win32.c
Log:
Make Sys_SetEnv behave alike on Windows and Linux


Modified: trunk/code/sys/sys_win32.c
===================================================================
--- trunk/code/sys/sys_win32.c	2011-04-17 22:09:05 UTC (rev 1942)
+++ trunk/code/sys/sys_win32.c	2011-04-18 00:39:15 UTC (rev 1943)
@@ -772,7 +772,10 @@
 */
 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));
 }
 
 /*



More information about the quake3-commits mailing list