aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-11-18 00:17:50 -0500
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-11-18 00:18:52 -0500
commit65a3d53cb92c3b153a69a6fb4827fc0b7790d4cf (patch)
tree12c45df2321910e3fcc30485dd33e32ab70be5ce
parenteab181a74e8534974f6cc887bae9b65fddcfe25e (diff)
downloadrneovim-65a3d53cb92c3b153a69a6fb4827fc0b7790d4cf.tar.gz
rneovim-65a3d53cb92c3b153a69a6fb4827fc0b7790d4cf.tar.bz2
rneovim-65a3d53cb92c3b153a69a6fb4827fc0b7790d4cf.zip
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
-rw-r--r--src/nvim/screen.c2
1 files changed, 1 insertions, 1 deletions
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 */