summaryrefslogtreecommitdiff
path: root/pp_hot.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2010-11-29 22:23:12 -0800
committerFather Chrysostomos <sprout@cpan.org>2010-11-29 22:23:12 -0800
commit10533aceddca633dc790cac997abdf25175ed2c8 (patch)
tree36053271d3eee3e114967fb70112a6b9d0a07a94 /pp_hot.c
parent490d91dd1a0e93241f348b009a39fe6a61fc2256 (diff)
downloadperl-10533aceddca633dc790cac997abdf25175ed2c8.tar.gz
Another oops.
Something else changed unnecessarily by 541ed3a9. I really oughtn’t do this when I’ve been awake for more than 18 hours....
Diffstat (limited to 'pp_hot.c')
-rw-r--r--pp_hot.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/pp_hot.c b/pp_hot.c
index c2b05ca7ca..9c5f3252cf 100644
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -2898,9 +2898,7 @@ try_autoload:
SAVECOMPPAD();
PAD_SET_CUR_NOSAVE(padlist, CvDEPTH(cv));
if (hasargs) {
- AV *av = MUTABLE_AV(PAD_SVl(0));
- if ((SV *)av == &PL_sv_undef)
- PAD_SVl(0) = (SV *)(av = newAV());
+ AV *const av = MUTABLE_AV(PAD_SVl(0));
if (AvREAL(av)) {
/* @_ is normally not REAL--this should only ever
* happen when DB::sub() calls things that modify @_ */