Mercurial > vim
changeset 16491:38a323a6fd18 v8.1.1249
patch 8.1.1249: compiler warning for uninitialized variable
commit https://github.com/vim/vim/commit/c6b1cc967f859c6e975d001e4304113db7190690
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri May 3 11:21:05 2019 +0200
patch 8.1.1249: compiler warning for uninitialized variable
Problem: Compiler warning for uninitialized variable.
Solution: Initialize it. (Christian Brabandt)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 03 May 2019 11:30:05 +0200 |
parents | 4162ee8bcb1d |
children | ecccee198645 |
files | src/regexp_nfa.c src/version.c |
diffstat | 2 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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;