diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-09-04 13:45:15 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-09-04 13:45:15 +0100 |
commit | c1eb131c9eb38e00e08109f50e3e5337c072b71e (patch) | |
tree | 57909f952f64e833317b65ebaa61dc9d3cbfbfe5 | |
parent | eb5adf19d15de4dd1d148954ac5345154f0fea60 (diff) | |
download | vim-git-c1eb131c9eb38e00e08109f50e3e5337c072b71e.tar.gz |
patch 9.0.0378: compiler warning for uninitialized variablev9.0.0378
Problem: Compiler warning for uninitialized variable. (Tony Mechelynck)
Solution: Initialize it.
-rw-r--r-- | src/spellfile.c | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/spellfile.c b/src/spellfile.c index 69b27ae91..d650f870e 100644 --- a/src/spellfile.c +++ b/src/spellfile.c @@ -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; diff --git a/src/version.c b/src/version.c index 1f6ba8caa..e53c1c036 100644 --- 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, |