diff options
author | Nicholas Clark <nick@ccl4.org> | 2010-11-23 11:46:43 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2010-11-23 13:20:19 +0000 |
commit | 7aaef02a1f50c8f5944af8dd33fc7de19986553f (patch) | |
tree | 338b8c2d0b3c5d5df945136f9943bc2452be6002 /pad.c | |
parent | 39b09a1b697b89ae14eb0e590e2444bb112d681a (diff) | |
download | perl-7aaef02a1f50c8f5944af8dd33fc7de19986553f.tar.gz |
No need to clone pad name 0, as it's never used.
Pad entry 0 is for @_, but no name is recorded for it, so the name slot is
always &PL_sv_undef.
Diffstat (limited to 'pad.c')
-rw-r--r-- | pad.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1651,7 +1651,7 @@ Perl_cv_clone(pTHX_ CV *proto) CvPADLIST(cv) = pad_new(padnew_CLONE|padnew_SAVE); av_fill(PL_comppad, fpad); - for (ix = fname; ix >= 0; ix--) + for (ix = fname; ix > 0; ix--) av_store(PL_comppad_name, ix, SvREFCNT_inc(pname[ix])); PL_curpad = AvARRAY(PL_comppad); |