diff options
author | Peter Martini <PeterCMartini@GMail.com> | 2013-06-24 17:58:46 -0400 |
---|---|---|
committer | Tony Cook <tony@develop-help.com> | 2013-06-25 10:53:35 +1000 |
commit | d16269d8356f921e8939320f5cfd7d08d130c078 (patch) | |
tree | 219aa621b5a3b5907e23e4ae3881af84a61b7ec2 /op.c | |
parent | 8c791efdf6d1362652176763d4efc264fc4f3e4d (diff) | |
download | perl-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) |