]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.1.1249: compiler warning for uninitialized variable v8.1.1249
authorBram Moolenaar <Bram@vim.org>
Fri, 3 May 2019 09:21:05 +0000 (11:21 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 3 May 2019 09:21:05 +0000 (11:21 +0200)
Problem:    Compiler warning for uninitialized variable.
Solution:   Initialize it. (Christian Brabandt)

src/regexp_nfa.c
src/version.c

index af7994c706c8d9fb4330d8b5d924006c3badd46f..a214b4a3fac90831bde9da754a1d06c52ca780d1 100644 (file)
@@ -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;
index 70eb2ab37984a118a5e999cacd1f83719828d775..8322aa44bf42048b141b6debab99d2e3654399cf 100644 (file)
@@ -767,6 +767,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1249,
 /**/
     1248,
 /**/