summaryrefslogtreecommitdiff
path: root/pp_hot.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2010-10-30 20:15:18 +0100
committerDavid Mitchell <davem@iabyn.com>2010-10-30 20:15:18 +0100
commit4d198de3bd065d87fc1d40626801a0ab4bb997b9 (patch)
treef6f1e4255d5dc262218d4203d1da6b52514f0dd6 /pp_hot.c
parent6829f5e2f12086d827b73097d3d0c7a306c68f16 (diff)
downloadperl-4d198de3bd065d87fc1d40626801a0ab4bb997b9.tar.gz
RT #63790: &{PL_sv_yes} corrupted mark stack
Calling a subref whose value was PL_sv_yes, and without args, failed to pop an entry off the mark stack
Diffstat (limited to 'pp_hot.c')
-rw-r--r--pp_hot.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pp_hot.c b/pp_hot.c
index f4d79dc5da..7f80fa5296 100644
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -2764,6 +2764,8 @@ PP(pp_entersub)
if (sv == &PL_sv_yes) { /* unfound import, ignore */
if (hasargs)
SP = PL_stack_base + POPMARK;
+ else
+ (void)POPMARK;
RETURN;
}
SvGETMAGIC(sv);