summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-10-18 14:01:59 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-10-18 14:01:59 +0000
commitf00d1d61e031a2a79e331ee3ee031a4f658d26e8 (patch)
tree9de830e2ca180615ee1b4319817e8637fb19763c /op.c
parent236b555a187749e9d630e83756e3a33db4d7a249 (diff)
downloadperl-f00d1d61e031a2a79e331ee3ee031a4f658d26e8.tar.gz
The _ character is only allowed to be at the end of prototypes
p4raw-id: //depot/perl@29036
Diffstat (limited to 'op.c')
-rw-r--r--op.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/op.c b/op.c
index eb14e0348e..95fb100c7a 100644
--- a/op.c
+++ b/op.c
@@ -7376,6 +7376,9 @@ Perl_ck_subr(pTHX_ OP *o)
proto++;
continue;
case '_':
+ /* _ must be at the end */
+ if (proto[1])
+ goto oops;
case '$':
proto++;
arg++;