diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-05-03 11:21:05 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-05-03 11:21:05 +0200 |
commit | c6b1cc967f859c6e975d001e4304113db7190690 (patch) | |
tree | e52b0359fec5ee5a57c06b017d752521671fcf45 /src/regexp_nfa.c | |
parent | 92fd599e0d85bdd7462926b2e5bcf7ce65fccc50 (diff) | |
download | vim-git-c6b1cc967f859c6e975d001e4304113db7190690.tar.gz |
patch 8.1.1249: compiler warning for uninitialized variablev8.1.1249
Problem: Compiler warning for uninitialized variable.
Solution: Initialize it. (Christian Brabandt)
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; |