LibRegex: Don't copy forked results twice

This commit is contained in:
Ali Mohammad Pur 2022-11-03 02:05:03 +03:30 committed by Ali Mohammad Pur
parent 464ac85a1b
commit cfcd6e770c
Notes: sideshowbarker 2024-07-17 04:24:10 +09:00

View file

@ -452,8 +452,6 @@ bool Matcher<Parser>::execute(MatchInput const& input, MatchState& state, size_t
(*it) = state;
it->instruction_position = state.fork_at_position;
it->initiating_fork = *input.fork_to_replace;
it->capture_group_matches = state.capture_group_matches;
it->matches = state.matches;
found = true;
break;
}