patch 9.0.0378: compiler warning for uninitialized variable v9.0.0378
authorBram Moolenaar <Bram@vim.org>
Sun, 4 Sep 2022 12:45:15 +0000 (13:45 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 4 Sep 2022 12:45:15 +0000 (13:45 +0100)
Problem:    Compiler warning for uninitialized variable. (Tony Mechelynck)
Solution:   Initialize it.

src/spellfile.c
src/version.c

index 69b27ae91964cd35dbcc1902f5e6d730cb25a6b5..d650f870eb304bfb9729a3ed0138a6ea52744355 100644 (file)
@@ -841,7 +841,7 @@ read_cnt_string(FILE *fd, int cnt_bytes, int *cntp)
 read_region_section(FILE *fd, slang_T *lp, int len)
 {
     int                i;
-    int                c;
+    int                c = 0;
 
     if (len > MAXREGIONS * 2)
        return SP_FORMERROR;
index 1f6ba8caa1f2e79cb2e562ef91b815ac81e65a9b..e53c1c03685648ae10970ae6a17549ee814b79c4 100644 (file)
@@ -703,6 +703,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    378,
 /**/
     377,
 /**/