summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorPeter Martini <PeterCMartini@GMail.com>2013-06-24 17:58:46 -0400
committerTony Cook <tony@develop-help.com>2013-06-25 10:53:35 +1000
commitd16269d8356f921e8939320f5cfd7d08d130c078 (patch)
tree219aa621b5a3b5907e23e4ae3881af84a61b7ec2 /op.c
parent8c791efdf6d1362652176763d4efc264fc4f3e4d (diff)
downloadperl-d16269d8356f921e8939320f5cfd7d08d130c078.tar.gz
Remove spaces from a (copy of) a proto when used. The logic that uses prototypes assumes spaces were already gone, which may not be true if they were added via XS / set_prototype.
Diffstat (limited to 'op.c')
-rw-r--r--op.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/op.c b/op.c
index 18b065c9dc..857e59fa4f 100644
--- a/op.c
+++ b/op.c
@@ -10078,6 +10078,7 @@ Perl_ck_entersub_args_proto(pTHX_ OP *entersubop, GV *namegv, SV *protosv)
if (SvTYPE(protosv) == SVt_PVCV)
proto = CvPROTO(protosv), proto_len = CvPROTOLEN(protosv);
else proto = SvPV(protosv, proto_len);
+ proto = S_strip_spaces(aTHX_ proto, &proto_len);
proto_end = proto + proto_len;
aop = cUNOPx(entersubop)->op_first;
if (!aop->op_sibling)