Mercurial > vim
changeset 27889:ec6756baed23 v8.2.4470
patch 8.2.4470: Coverity warns for uninitialized variable
Commit: https://github.com/vim/vim/commit/ae49aa8434f325f476245ccf5ef119f49c609877
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Feb 25 21:05:36 2022 +0000
patch 8.2.4470: Coverity warns for uninitialized variable
Problem: Coverity warns for uninitialized variable.
Solution: Set can_spell to zero.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 25 Feb 2022 22:15:03 +0100 |
parents | d2f9d6b0bb8d |
children | dddb087a9801 |
files | src/drawline.c src/version.c |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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