changeset 30081:b0a27cb13319 v9.0.0378

patch 9.0.0378: compiler warning for uninitialized variable Commit: https://github.com/vim/vim/commit/c1eb131c9eb38e00e08109f50e3e5337c072b71e Author: Bram Moolenaar <Bram@vim.org> Date: Sun Sep 4 13:45:15 2022 +0100 patch 9.0.0378: compiler warning for uninitialized variable Problem: Compiler warning for uninitialized variable. (Tony Mechelynck) Solution: Initialize it.
author Bram Moolenaar <Bram@vim.org>
date Sun, 04 Sep 2022 15:00:03 +0200
parents 9ed8531024ec
children 3dc03a877e86
files src/spellfile.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/spellfile.c
+++ b/src/spellfile.c
@@ -841,7 +841,7 @@ read_cnt_string(FILE *fd, int cnt_bytes,
 read_region_section(FILE *fd, slang_T *lp, int len)
 {
     int		i;
-    int		c;
+    int		c = 0;
 
     if (len > MAXREGIONS * 2)
 	return SP_FORMERROR;
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    378,
+/**/
     377,
 /**/
     376,