[svn:parrot] r41961 - trunk/config/gen/platform/win32

whiteknight at svn.parrot.org whiteknight at svn.parrot.org
Tue Oct 20 20:13:30 UTC 2009


Author: whiteknight
Date: Tue Oct 20 20:13:28 2009
New Revision: 41961
URL: https://trac.parrot.org/parrot/changeset/41961

Log:
[win32] fix a weird error in the environment variable code for win32 where we were passing a char* instead of a STRING* like we should ahve been

Modified:
   trunk/config/gen/platform/win32/env.c

Modified: trunk/config/gen/platform/win32/env.c
==============================================================================
--- trunk/config/gen/platform/win32/env.c	Tue Oct 20 18:24:08 2009	(r41960)
+++ trunk/config/gen/platform/win32/env.c	Tue Oct 20 20:13:28 2009	(r41961)
@@ -131,7 +131,7 @@
    string -- in other words, by specifying only varname=.
        -- _putenv, _wputenv (CRT) documentation
 */
-    Parrot_setenv(interp, name, "");
+    Parrot_setenv(interp, name, Parrot_str_new(interp, "", 0));
 }
 
 /*


More information about the parrot-commits mailing list