diff options
Diffstat (limited to 'src/regexp_nfa.c')
-rw-r--r-- | src/regexp_nfa.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/regexp_nfa.c b/src/regexp_nfa.c index af7994c70..a214b4a3f 100644 --- a/src/regexp_nfa.c +++ b/src/regexp_nfa.c @@ -5510,8 +5510,10 @@ nfa_did_time_out() * * When "nfa_endp" is not NULL it is a required end-of-match position. * - * Return TRUE if there is a match, FALSE otherwise. + * Return TRUE if there is a match, FALSE if there is no match, + * NFA_TOO_EXPENSIVE if we end up with too many states. * When there is a match "submatch" contains the positions. + * * Note: Caller must ensure that: start != NULL. */ static int @@ -5521,7 +5523,7 @@ nfa_regmatch( regsubs_T *submatch, regsubs_T *m) { - int result; + int result = FALSE; size_t size = 0; int flag = 0; int go_to_nextline = FALSE; |