diff --git a/ChangeLog b/ChangeLog index e74a6bf..68d1445 100644 --- a/ChangeLog +++ b/ChangeLog @@ -78,6 +78,10 @@ infelicity rather than an outright bug, because it did not affect the result of a match, just its speed. (In fact, in this case, the starting 'a' was subsequently picked up in the study.) +19. A minor tidy in pcre2_match(): making all PCRE2_ERROR_ returns use "return" +instead of "RRETURN" saves unwinding the backtracks in these cases (only one +didn't). + Version 10.30 14-August-2017 ---------------------------- diff --git a/src/pcre2_match.c b/src/pcre2_match.c index 9ea6768..f131fd8 100644 --- a/src/pcre2_match.c +++ b/src/pcre2_match.c @@ -5052,7 +5052,7 @@ fprintf(stderr, "++ op=%d\n", *Fecode); P = (heapframe *)((char *)N - frame_size); if (N->group_frame_type == (GF_RECURSE | number)) { - if (Feptr == P->eptr) RRETURN(PCRE2_ERROR_RECURSELOOP); + if (Feptr == P->eptr) return PCRE2_ERROR_RECURSELOOP; break; } offset = P->last_group_offset;