summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2006-01-30 13:42:56 +0000
committerNicholas Clark <nick@ccl4.org>2006-01-30 13:42:56 +0000
commitf9d52e31c1813ca7a3cf9d975dc34f04194d1328 (patch)
treeb3e1a2c046ea4fde5afcf0040576d488cf910737 /pp.c
parent25909821eb3e0c6b8049a206da47b68b90d7e46a (diff)
downloadperl-f9d52e31c1813ca7a3cf9d975dc34f04194d1328.tar.gz
Code assumes that *FOO{SCALAR} will always return a scalar reference,
so make it so, creating $FOO if necessary. (Effectively this is a policy decision that PERL_DONT_CREATE_GVSV is visible to XS code, but isn't visible to Perl code) p4raw-id: //depot/perl@27002
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp.c b/pp.c
index 9676ce6501..96d5ef6a24 100644
--- a/pp.c
+++ b/pp.c
@@ -607,7 +607,7 @@ PP(pp_gelem)
break;
case 'S':
if (strEQ(second_letter, "CALAR"))
- tmpRef = GvSV(gv);
+ tmpRef = GvSVn(gv);
break;
}
}