summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorHugo van der Sanden <hv@crypt.org>2000-08-22 12:21:53 +0100
committerJarkko Hietaniemi <jhi@iki.fi>2000-08-22 14:34:49 +0000
commit769cfde878d2292062fc39e70db12f128627e07d (patch)
treead098e52d31107e77862c1f84d2978ece4ebc1a3 /regcomp.c
parentc8b1766e5c808cce22859475663ce072774ff883 (diff)
downloadperl-769cfde878d2292062fc39e70db12f128627e07d.tar.gz
nextchar() abuse misses an optimisation
Message-Id: <200008221021.LAA03332@crypt.compulink.co.uk> p4raw-id: //depot/perl@6770
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/regcomp.c b/regcomp.c
index 0c23931aa1..723cbbe298 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -2468,9 +2468,9 @@ tryagain:
ret = reg_node(BOL);
break;
case '$':
- if (PL_regcomp_parse[1])
- PL_seen_zerolen++;
nextchar();
+ if (*PL_regcomp_parse)
+ PL_seen_zerolen++;
if (PL_regflags & PMf_MULTILINE)
ret = reg_node(MEOL);
else if (PL_regflags & PMf_SINGLELINE)