summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-02-25 21:05:36 +0000
committerBram Moolenaar <Bram@vim.org>2022-02-25 21:05:36 +0000
commitae49aa8434f325f476245ccf5ef119f49c609877 (patch)
tree0f31c42ce4b42cfbe5ab7eb66b2142102dfcc461
parent05c1734c4f70a0d7fb2f06444e26afda018f8795 (diff)
downloadvim-git-ae49aa8434f325f476245ccf5ef119f49c609877.tar.gz
patch 8.2.4470: Coverity warns for uninitialized variablev8.2.4470
Problem: Coverity warns for uninitialized variable. Solution: Set can_spell to zero.
-rw-r--r--src/drawline.c2
-rw-r--r--src/version.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/drawline.c b/src/drawline.c
index 51dcfb1bb..a55c06dc9 100644
--- a/src/drawline.c
+++ b/src/drawline.c
@@ -330,7 +330,7 @@ win_line(
#endif
#ifdef FEAT_SPELL
int has_spell = FALSE; // this buffer has spell checking
- int can_spell;
+ int can_spell = FALSE;
# define SPWORDLEN 150
char_u nextline[SPWORDLEN * 2];// text with start of the next line
int nextlinecol = 0; // column where nextline[] starts
diff --git a/src/version.c b/src/version.c
index 0889ac4d0..ccd281a5d 100644
--- a/src/version.c
+++ b/src/version.c
@@ -755,6 +755,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 4470,
+/**/
4469,
/**/
4468,