From e25e13010f33e943d98a02c701fcec90c1ad6a11 Mon Sep 17 00:00:00 2001 From: Dave Mitchell Date: Mon, 25 Aug 2003 14:27:49 +0100 Subject: [PATCH] valgrind and /#/x Message-ID: <20030825122748.GA15560@fdgroup.com> p4raw-id: //depot/perl@20880 --- regcomp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/regcomp.c b/regcomp.c index dedcd00..556922a 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; } } -- 1.8.3.1