summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorBrian Fraser <fraserbn@gmail.com>2011-07-07 09:25:18 -0300
committerFather Chrysostomos <sprout@cpan.org>2011-10-06 13:01:18 -0700
commit108f32a5da28810b69c9097b4559dc86faada4fc (patch)
tree9693b54d7e6b5e8de6d0ed675e9eeeef799377ea /op.c
parentf1c07be4129bd6df320f25e77520c9725c21b9ba (diff)
downloadperl-108f32a5da28810b69c9097b4559dc86faada4fc.tar.gz
op.c: Malformed prototype warning on UTF8 sub name
Diffstat (limited to 'op.c')
-rw-r--r--op.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/op.c b/op.c
index 49c1513b3a..7335747855 100644
--- a/op.c
+++ b/op.c
@@ -9192,9 +9192,12 @@ Perl_ck_entersub_args_proto(pTHX_ OP *entersubop, GV *namegv, SV *protosv)
proto++;
continue;
default:
- oops:
- Perl_croak(aTHX_ "Malformed prototype for %s: %"SVf,
- gv_ename(namegv), SVfARG(protosv));
+ oops: {
+ SV* const tmpsv = sv_newmortal();
+ gv_efullname3(tmpsv, namegv, NULL);
+ Perl_croak(aTHX_ "Malformed prototype for %"SVf": %"SVf,
+ SVfARG(tmpsv), SVfARG(protosv));
+ }
}
op_lvalue(aop, OP_ENTERSUB);