diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-05-03 22:25:00 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-05-03 23:15:06 -0400 |
commit | 49b0d41c3cd884a9b79fe79ce0b64f292f9866f5 (patch) | |
tree | d9eea3fd00c5782c32e5cc27905699796f844812 | |
parent | 6891d8aeca9abc24314ad92cb0c669afa13a8769 (diff) | |
download | rneovim-49b0d41c3cd884a9b79fe79ce0b64f292f9866f5.tar.gz rneovim-49b0d41c3cd884a9b79fe79ce0b64f292f9866f5.tar.bz2 rneovim-49b0d41c3cd884a9b79fe79ce0b64f292f9866f5.zip |
vim-patch:8.1.1249: compiler warning for uninitialized variable
Problem: Compiler warning for uninitialized variable.
Solution: Initialize it. (Christian Brabandt)
https://github.com/vim/vim/commit/c6b1cc967f859c6e975d001e4304113db7190690
-rw-r--r-- | src/nvim/regexp_nfa.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nvim/regexp_nfa.c b/src/nvim/regexp_nfa.c index b935b44291..ce7270ae65 100644 --- a/src/nvim/regexp_nfa.c +++ b/src/nvim/regexp_nfa.c @@ -4968,13 +4968,15 @@ static int nfa_did_time_out(void) /// /// 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 nfa_regmatch(nfa_regprog_T *prog, nfa_state_T *start, regsubs_T *submatch, regsubs_T *m) { - int result; + int result = false; int flag = 0; bool go_to_nextline = false; nfa_thread_T *t; |