summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorDave Mitchell <davem@fdisolutions.com>2004-05-03 20:26:22 +0000
committerDave Mitchell <davem@fdisolutions.com>2004-05-03 20:26:22 +0000
commite2ab214b14c9284fa9074628aa22936a93dab84f (patch)
tree5d0ff4040252d45a379e056c4c436290e460d94e /toke.c
parent9111c9c032460b8a1a0f3c5ec70114106769f656 (diff)
downloadperl-e2ab214b14c9284fa9074628aa22936a93dab84f.tar.gz
[perl #28986] perl -e "open m" crashes Perl
p4raw-id: //depot/perl@22776
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/toke.c b/toke.c
index e8c1073d24..6899cb468c 100644
--- a/toke.c
+++ b/toke.c
@@ -4681,8 +4681,8 @@ Perl_yylex(pTHX)
if (isIDFIRST_lazy_if(s,UTF)) {
char *t;
for (d = s; isALNUM_lazy_if(d,UTF); d++) ;
- t = skipspace(d);
- if (strchr("|&*+-=!?:.", *t) && ckWARN_d(WARN_PRECEDENCE)
+ for (t=d; *t && isSPACE(*t); t++) ;
+ if ( *t && strchr("|&*+-=!?:.", *t) && ckWARN_d(WARN_PRECEDENCE)
/* [perl #16184] */
&& !(t[0] == '=' && t[1] == '>')
) {