develooper Front page | perl.perl5.porters | Postings from January 2001

[PATCH] environ nit

Thread Next
From:
Simon Cozens
Date:
January 7, 2001 09:58
Subject:
[PATCH] environ nit
Message ID:
20010107175707.A2013@pembro26.pmb.ox.ac.uk
Don't use "environ" unless we're using environ! Things break!

--- mg.c~	Sun Jan  7 17:54:52 2001
+++ mg.c	Sun Jan  7 17:55:45 2001
@@ -929,6 +929,7 @@
     }
     FreeEnvironmentStrings(envv);
 #	else
+#ifdef USE_ENVIRON_ARRAY
 #	    ifndef PERL_USE_SAFE_PUTENV
     I32 i;
 
@@ -941,6 +942,7 @@
 
     environ[0] = Nullch;
 
+#endif /* USE_ENVIRON_ARRAY */
 #	endif /* WIN32 */
 #   endif /* PERL_IMPLICIT_SYS */
 #endif /* VMS */

-- 
"The Write Many, Read Never drive. For those people that don't know their
 system has a /dev/null already." - Rik Steenwinkel on Exabyte drives, ASR

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About