diff options
author | Karl Williamson <khw@cpan.org> | 2019-03-17 10:19:21 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2019-03-18 10:33:31 -0600 |
commit | 26a67203e295db168d5dc99acd000b93c025a298 (patch) | |
tree | a5eaa55a666568115448a32fdab29410613520a5 | |
parent | 9f15dc73803b82c03a27427be490999360db1023 (diff) | |
download | perl-26a67203e295db168d5dc99acd000b93c025a298.tar.gz |
regexec.c: Rmv unnecessary assigns
We never use this variable again (this isn't in a loop unlike similar
cases in other functions in this file), so we don't care if it gets
updated. Instead use the source value directly.
-rw-r--r-- | regexec.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -9578,8 +9578,8 @@ S_regrepeat(pTHX_ regexp *prog, char **startposp, const regnode *p, /* LNBREAK can match one or two latin chars, which is ok, but we * have to use hardcount in this situation, and throw away the * adjustment to <loceol> done before the switch statement */ - loceol = reginfo->strend; - while (scan < loceol && (c=is_LNBREAK_latin1_safe(scan, loceol))) { + ; + while (scan < reginfo->strend && (c=is_LNBREAK_latin1_safe(scan, reginfo->strend))) { scan+=c; hardcount++; } |