Skip to content

Commit 060589f

Browse files
committed
regexec.c: Remove do-nothing call
Hopping 0 does nothing. I thought at first this was moving to the beginning of the next character, but having read the source code, no, it does nothing.
1 parent ad0f862 commit 060589f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

regexec.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4094,7 +4094,6 @@ Perl_regexec_flags(pTHX_ REGEXP * const rx, char *stringarg, char *strend,
40944094
/* XXXX check_substr already used to find "s", can optimize if
40954095
check_substr==must. */
40964096
dontbother = 0;
4097-
strend = HOPc(strend, -dontbother);
40984097
while ( (s <= last) &&
40994098
(s = fbm_instr((unsigned char*)HOP4c(s, back_min, strbeg, strend),
41004099
(unsigned char*)strend, must,

0 commit comments

Comments
 (0)