summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2019-03-17 10:19:21 -0600
committerKarl Williamson <khw@cpan.org>2019-03-18 10:33:31 -0600
commit26a67203e295db168d5dc99acd000b93c025a298 (patch)
treea5eaa55a666568115448a32fdab29410613520a5
parent9f15dc73803b82c03a27427be490999360db1023 (diff)
downloadperl-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/regexec.c b/regexec.c
index 26825c7e35..2d603fd3bb 100644
--- a/regexec.c
+++ b/regexec.c
@@ -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++;
}