summaryrefslogtreecommitdiff
path: root/pad.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2010-11-23 11:46:43 +0000
committerNicholas Clark <nick@ccl4.org>2010-11-23 13:20:19 +0000
commit7aaef02a1f50c8f5944af8dd33fc7de19986553f (patch)
tree338b8c2d0b3c5d5df945136f9943bc2452be6002 /pad.c
parent39b09a1b697b89ae14eb0e590e2444bb112d681a (diff)
downloadperl-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pad.c b/pad.c
index 7d7b5eb131..9b8cda5df2 100644
--- a/pad.c
+++ b/pad.c
@@ -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);