summaryrefslogtreecommitdiffstats
path: root/src/regexp_nfa.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:05:51 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:05:51 +0000
commit3b8b0072dafee1c363713688a821982167185fa0 (patch)
tree7ae89cb789d77aecb88f4785011115d820f9bf49 /src/regexp_nfa.c
parentAdding upstream version 2:9.1.0698. (diff)
downloadvim-upstream.tar.xz
vim-upstream.zip
Adding upstream version 2:9.1.0709.upstream/2%9.1.0709upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-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 6db4134..557d0e1 100644
--- a/src/regexp_nfa.c
+++ b/src/regexp_nfa.c
@@ -6525,7 +6525,8 @@ nfa_regmatch(
else
result = FAIL;
- if (t->state->out->out1->c == NFA_END_COMPOSING)
+ if (t->state->out->out1 != NULL
+ && t->state->out->out1->c == NFA_END_COMPOSING)
{
end = t->state->out->out1;
ADD_STATE_IF_MATCH(end);