summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2010-05-31 13:19:22 +0100
committerNicholas Clark <nick@ccl4.org>2010-05-31 13:19:22 +0100
commitc1bf42f3e6ad8f1c3d821a2ae616c5703f66237c (patch)
treeb9f534e9a7e7761c09a8570e021dafb745662fa5 /lib
parent4c050ad563ece4467b3b083d8efcf2b62ad0b9c5 (diff)
downloadperl-c1bf42f3e6ad8f1c3d821a2ae616c5703f66237c.tar.gz
In Perl_pad_add_name(), use sv_upgrade() directly rather than new[AH]V().
As newAV() and newHV() are now merely wrappers around sv_upgrade(), and the existing SV is always brand new and of type SVt_NULL, call them on it, rather than disposing of it as a side effect of storing a(nother new) SV. Also, no need to set SvPADMY() again, as it is already set. Resolves RT #73092.
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions