summaryrefslogtreecommitdiff
path: root/mg.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2012-07-24 16:52:10 +0200
committerNicholas Clark <nick@ccl4.org>2012-07-24 16:52:10 +0200
commit6bd66ee9eed0fbfa1339611ebae5d169703b14d6 (patch)
tree811b878b28310592a80e712d3372a38d1cc0fd5f /mg.c
parentc76419315df6965e6d8ba598dad9a8d5169b5859 (diff)
downloadperl-6bd66ee9eed0fbfa1339611ebae5d169703b14d6.tar.gz
In Perl_magic_setenv() s/ptr/key/ in two pieces of platform-specific code.
These were missed in commit 1203306491d341ed, which renamed ptr to key.
Diffstat (limited to 'mg.c')
-rw-r--r--mg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mg.c b/mg.c
index 317f00aefb..2705109bbd 100644
--- a/mg.c
+++ b/mg.c
@@ -1179,7 +1179,7 @@ Perl_magic_setenv(pTHX_ SV *sv, MAGIC *mg)
/* We just undefd an environment var. Is a replacement */
/* waiting in the wings? */
if (!len) {
- SV ** const valp = hv_fetch(GvHVn(PL_envgv), ptr, klen, FALSE);
+ SV ** const valp = hv_fetch(GvHVn(PL_envgv), key, klen, FALSE);
if (valp)
s = SvOK(*valp) ? SvPV_const(*valp, len) : "";
}
@@ -1191,7 +1191,7 @@ Perl_magic_setenv(pTHX_ SV *sv, MAGIC *mg)
if (PL_tainting) {
MgTAINTEDDIR_off(mg);
#ifdef VMS
- if (s && klen == 8 && strEQ(ptr, "DCL$PATH")) {
+ if (s && klen == 8 && strEQ(key, "DCL$PATH")) {
char pathbuf[256], eltbuf[256], *cp, *elt;
int i = 0, j = 0;