This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53e3a7f
)
environ nit
author
Simon Cozens
<simon@netthink.co.uk>
Sun, 7 Jan 2001 17:57:07 +0000
(17:57 +0000)
committer
Jarkko Hietaniemi
<jhi@iki.fi>
Mon, 8 Jan 2001 02:35:16 +0000
(
02:35
+0000)
Message-ID: <
20010107175707
.A2013@pembro26.pmb.ox.ac.uk>
Use environ only if we have it.
p4raw-id: //depot/perl@8365
mg.c
patch
|
blob
|
blame
|
history
diff --git
a/mg.c
b/mg.c
index
206c0ce
..
99600a4
100644
(file)
--- a/
mg.c
+++ b/
mg.c
@@
-929,6
+929,7
@@
Perl_magic_clear_all_env(pTHX_ SV *sv, MAGIC *mg)
}
FreeEnvironmentStrings(envv);
# else
+#ifdef USE_ENVIRON_ARRAY
# ifndef PERL_USE_SAFE_PUTENV
I32 i;
@@
-941,6
+942,7
@@
Perl_magic_clear_all_env(pTHX_ SV *sv, MAGIC *mg)
environ[0] = Nullch;
+#endif /* USE_ENVIRON_ARRAY */
# endif /* WIN32 */
# endif /* PERL_IMPLICIT_SYS */
#endif /* VMS */