diff options
author | Father Chrysostomos <sprout@cpan.org> | 2014-11-27 22:11:29 -0800 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2014-11-30 11:48:41 -0800 |
commit | dbfcda05eb64bedf93e1561611c6e820e1c50ff1 (patch) | |
tree | 26bd790473496e6e45623022af83f20cdd653dcc /pad.c | |
parent | 01b9977c9befe5459c20661a52da1e4310599b16 (diff) | |
download | perl-dbfcda05eb64bedf93e1561611c6e820e1c50ff1.tar.gz |
Use PADNAME rather than SV in pad.c:pad_tidy
Diffstat (limited to 'pad.c')
-rw-r--r-- | pad.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1719,8 +1719,8 @@ Perl_pad_tidy(pTHX_ padtidy_type type) PADOFFSET ix; for (ix = AvFILLp(PL_comppad); ix > 0; ix--) { - SV *namesv; - if (!namep[ix]) namep[ix] = &PL_sv_undef; + PADNAME *namesv; + if (!namep[ix]) namep[ix] = &PL_padname_undef; /* * The only things that a clonable function needs in its @@ -1731,7 +1731,7 @@ Perl_pad_tidy(pTHX_ padtidy_type type) continue; namesv = namep[ix]; if (!(PadnamePV(namesv) && - (!PadnameLEN(namesv) || *SvPVX_const(namesv) == '&'))) + (!PadnameLEN(namesv) || *PadnamePV(namesv) == '&'))) { SvREFCNT_dec(PL_curpad[ix]); PL_curpad[ix] = NULL; |