summaryrefslogtreecommitdiff
path: root/src/regexp_nfa.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/regexp_nfa.c')
-rw-r--r--src/regexp_nfa.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/regexp_nfa.c b/src/regexp_nfa.c
index a21c3c03f..32108bee4 100644
--- a/src/regexp_nfa.c
+++ b/src/regexp_nfa.c
@@ -6947,7 +6947,8 @@ nfa_regtry(prog, col, tm)
{
cleanup_zsubexpr();
re_extmatch_out = make_extmatch();
- for (i = 0; i < subs.synt.in_use; i++)
+ /* Loop over \z1, \z2, etc. There is no \z0. */
+ for (i = 1; i < subs.synt.in_use; i++)
{
if (REG_MULTI)
{