1
0
forked from aniani/vim

patch 8.2.4470: Coverity warns for uninitialized variable

Problem:    Coverity warns for uninitialized variable.
Solution:   Set can_spell to zero.
This commit is contained in:
Bram Moolenaar
2022-02-25 21:05:36 +00:00
parent 05c1734c4f
commit ae49aa8434
2 changed files with 3 additions and 1 deletions

View File

@@ -330,7 +330,7 @@ win_line(
#endif #endif
#ifdef FEAT_SPELL #ifdef FEAT_SPELL
int has_spell = FALSE; // this buffer has spell checking int has_spell = FALSE; // this buffer has spell checking
int can_spell; int can_spell = FALSE;
# define SPWORDLEN 150 # define SPWORDLEN 150
char_u nextline[SPWORDLEN * 2];// text with start of the next line char_u nextline[SPWORDLEN * 2];// text with start of the next line
int nextlinecol = 0; // column where nextline[] starts int nextlinecol = 0; // column where nextline[] starts

View File

@@ -754,6 +754,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
4470,
/**/ /**/
4469, 4469,
/**/ /**/