summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibRegex
diff options
context:
space:
mode:
authorAli Mohammad Pur <ali.mpfard@gmail.com>2022-11-03 02:05:03 +0330
committerAli Mohammad Pur <Ali.mpfard@gmail.com>2022-11-17 20:13:04 +0330
commitcfcd6e770ce9b81164136c2d8e9763c7d2b2e9f9 (patch)
treeb1f153d44a63e0316f9194d2d9149b146e9501e7 /Userland/Libraries/LibRegex
parent464ac85a1bd8be4e0a00a7058add8314799d165e (diff)
downloadserenity-cfcd6e770ce9b81164136c2d8e9763c7d2b2e9f9.zip
LibRegex: Don't copy forked results twice
Diffstat (limited to 'Userland/Libraries/LibRegex')
-rw-r--r--Userland/Libraries/LibRegex/RegexMatcher.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/Userland/Libraries/LibRegex/RegexMatcher.cpp b/Userland/Libraries/LibRegex/RegexMatcher.cpp
index 109a7324ef..2684db4b0f 100644
--- a/Userland/Libraries/LibRegex/RegexMatcher.cpp
+++ b/Userland/Libraries/LibRegex/RegexMatcher.cpp
@@ -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;
}