summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorLarry Wall <larry@netlabs.com>1993-12-10 00:00:00 +0000
committerLarry Wall <larry@netlabs.com>1993-12-10 00:00:00 +0000
commitf511e57ff4db0bbf2d653a58c8f5a33e79431894 (patch)
tree516ff307c20dd9da489e3a8c07d5132191b71871 /perl.c
parent463ee0b2acbd047c27e8b5393cdd8398881824c5 (diff)
downloadperl-f511e57ff4db0bbf2d653a58c8f5a33e79431894.tar.gz
perl5a5:pat/env.pat
[random patch found in the perl-5alpha5 tarball applied separately]
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl.c b/perl.c
index e2b4821bf0..342714fd02 100644
--- a/perl.c
+++ b/perl.c
@@ -1303,7 +1303,6 @@ register char **env;
SvMULTI_on(envgv);
hv = GvHVn(envgv);
hv_clear(hv);
- hv_magic(hv, envgv, 'E');
if (env != environ)
environ[0] = Nullch;
for (; *env; env++) {
@@ -1314,6 +1313,7 @@ register char **env;
(void)hv_store(hv, *env, s - *env, sv, 0);
*s = '=';
}
+ hv_magic(hv, envgv, 'E');
}
tainted = 0;
if (tmpgv = gv_fetchpv("$",TRUE))