From 65a3d53cb92c3b153a69a6fb4827fc0b7790d4cf Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Sun, 18 Nov 2018 00:17:50 -0500 Subject: vim-patch:8.1.0376: compiler warning for uninitialized variable Problem: Compiler warning for uninitialized variable. (Tony Mechelynck) Solution: Initialize the variable. https://github.com/vim/vim/commit/c787539747f6bb2510a56aa14dbf6808aff5681a --- src/nvim/screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nvim/screen.c b/src/nvim/screen.c index d1453b56d2..a1e666386b 100644 --- a/src/nvim/screen.c +++ b/src/nvim/screen.c @@ -2172,7 +2172,7 @@ win_line ( static int cap_col = -1; /* column to check for Cap word */ static linenr_T capcol_lnum = 0; /* line number where "cap_col" used */ int cur_checked_col = 0; /* checked column for current line */ - int extra_check; /* has syntax or linebreak */ + int extra_check = 0; // has syntax or linebreak int multi_attr = 0; /* attributes desired by multibyte */ int mb_l = 1; /* multi-byte byte length */ int mb_c = 0; /* decoded multi-byte character */ -- cgit