summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorDave Mitchell <davem@fdisolutions.com>2003-08-25 14:27:49 +0100
committerJarkko Hietaniemi <jhi@iki.fi>2003-08-25 11:28:45 +0000
commite25e13010f33e943d98a02c701fcec90c1ad6a11 (patch)
tree5082b9bc2780639e84bb0b3be6dddd769b87b793 /regcomp.c
parent0aa38fa1157d012b85942b1714a3f2e70208b9a7 (diff)
downloadperl-e25e13010f33e943d98a02c701fcec90c1ad6a11.tar.gz
valgrind and /#/x
Message-ID: <20030825122748.GA15560@fdgroup.com> p4raw-id: //depot/perl@20880
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/regcomp.c b/regcomp.c
index dedcd0079d..556922a1ba 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -4285,7 +4285,8 @@ S_nextchar(pTHX_ RExC_state_t *pRExC_state)
else if (*RExC_parse == '#') {
while (*RExC_parse && *RExC_parse != '\n')
RExC_parse++;
- RExC_parse++;
+ if (*RExC_parse)
+ RExC_parse++;
continue;
}
}