summaryrefslogtreecommitdiff
path: root/pad.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2014-11-27 19:26:14 -0800
committerFather Chrysostomos <sprout@cpan.org>2014-11-30 11:48:40 -0800
commitcab74fcaebc3ae02d2be259329dee5091cecf045 (patch)
tree414f0d0ad95f758fd859167dfd63ec326b2657d8 /pad.c
parentc9956dca66cd54e6ae48aff4131b749304d77340 (diff)
downloadperl-cab74fcaebc3ae02d2be259329dee5091cecf045.tar.gz
Use PADNAME rather than SV in pad.c:cv_undef_flags
Diffstat (limited to 'pad.c')
-rw-r--r--pad.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/pad.c b/pad.c
index 229d69ab11..48a67dc495 100644
--- a/pad.c
+++ b/pad.c
@@ -401,13 +401,12 @@ Perl_cv_undef_flags(pTHX_ CV *cv, U32 flags)
CV * const outercv = CvOUTSIDE(&cvbody);
const U32 seq = CvOUTSIDE_SEQ(&cvbody);
PADNAMELIST * const comppad_name = PadlistNAMES(padlist);
- SV ** const namepad = PadnamelistARRAY(comppad_name);
+ PADNAME ** const namepad = PadnamelistARRAY(comppad_name);
PAD * const comppad = PadlistARRAY(padlist)[1];
SV ** const curpad = AvARRAY(comppad);
for (ix = PadnamelistMAX(comppad_name); ix > 0; ix--) {
- SV * const namesv = namepad[ix];
- if (namesv && namesv != &PL_sv_undef
- && *SvPVX_const(namesv) == '&')
+ PADNAME * const name = namepad[ix];
+ if (name && PadnamePV(name) && *PadnamePV(name) == '&')
{
CV * const innercv = MUTABLE_CV(curpad[ix]);
U32 inner_rc = SvREFCNT(innercv);