aboutsummaryrefslogtreecommitdiff
path: root/src/work.c
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-11-12 12:14:17 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-11-12 12:14:24 +0100
commitde93679b5f79143a3260832423879b4c411475c7 (patch)
treec574112d9d93cf6435dd1878ac54732ad9530206 /src/work.c
parentdb26e142d85621a5b79b1c1e44a909108637eaf7 (diff)
Fix broken G// implementation
Diffstat (limited to 'src/work.c')
-rw-r--r--src/work.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/work.c b/src/work.c
index 32962ff..38dfe07 100644
--- a/src/work.c
+++ b/src/work.c
@@ -212,7 +212,7 @@ DEFINE_OPERATOR(G)
if (n == PCRE2_ERROR_NOMATCH)
operator_dispatch(opi + 1, sv, hl);
- if (n < 0)
+ else if (n < 0)
pcre2_bitch_and_die(n, "failed to match regex");
}