summaryrefslogtreecommitdiff
path: root/hv.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1998-02-14 00:14:04 +0000
committerGurusamy Sarathy <gsar@cpan.org>1998-02-14 00:14:04 +0000
commit7fae4e64c5e2903183a8656ece6686238ddef215 (patch)
treefcfe3d9ba5c065b79e40d57f28c003565b6bedac /hv.c
parent837485b6cd4b757519a4ac6f03f3857c2fcf4844 (diff)
downloadperl-7fae4e64c5e2903183a8656ece6686238ddef215.tar.gz
[asperl] added AS patch#5 (patch #4 was intentionally skipped after
discussion) p4raw-id: //depot/asperl@521
Diffstat (limited to 'hv.c')
-rw-r--r--hv.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/hv.c b/hv.c
index 64ad73f1a3..3474761503 100644
--- a/hv.c
+++ b/hv.c
@@ -142,7 +142,7 @@ hv_fetch(HV *hv, char *key, U32 klen, I32 lval)
if (HvNAME(hv) && strEQ(HvNAME(hv),ENV_HV_NAME)) {
char *gotenv;
- if ((gotenv = ENV_getenv(key)) != Nullch) {
+ if ((gotenv = PerlEnv_getenv(key)) != Nullch) {
sv = newSVpv(gotenv,strlen(gotenv));
SvTAINTED_on(sv);
return hv_store(hv,key,klen,sv,hash);
@@ -172,8 +172,6 @@ hv_fetch_ent(HV *hv, SV *keysv, I32 lval, register U32 hash)
if (SvRMAGICAL(hv)) {
if (mg_find((SV*)hv,'P')) {
- static HE mh;
-
sv = sv_newmortal();
keysv = sv_2mortal(newSVsv(keysv));
mg_copy((SV*)hv, sv, (char*)keysv, HEf_SVKEY);
@@ -234,7 +232,7 @@ hv_fetch_ent(HV *hv, SV *keysv, I32 lval, register U32 hash)
if (HvNAME(hv) && strEQ(HvNAME(hv),ENV_HV_NAME)) {
char *gotenv;
- if ((gotenv = ENV_getenv(key)) != Nullch) {
+ if ((gotenv = PerlEnv_getenv(key)) != Nullch) {
sv = newSVpv(gotenv,strlen(gotenv));
SvTAINTED_on(sv);
return hv_store_ent(hv,keysv,sv,hash);