From: Bram Moolenaar Date: Fri, 3 May 2019 09:21:05 +0000 (+0200) Subject: patch 8.1.1249: compiler warning for uninitialized variable X-Git-Tag: v8.1.1249 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6b1cc967f859c6e975d001e4304113db7190690;p=thirdparty%2Fvim.git patch 8.1.1249: compiler warning for uninitialized variable Problem: Compiler warning for uninitialized variable. Solution: Initialize it. (Christian Brabandt) --- diff --git a/src/regexp_nfa.c b/src/regexp_nfa.c index af7994c706..a214b4a3fa 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; diff --git a/src/version.c b/src/version.c index 70eb2ab379..8322aa44bf 100644 --- a/src/version.c +++ b/src/version.c @@ -767,6 +767,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1249, /**/ 1248, /**/