From a348c666a3ffd73bf7918c3904d0adc325c08465 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sun, 19 Sep 2021 13:13:44 +0800 Subject: vim-patch:8.2.3425: warning for using uninitialized variable Problem: Warning for using uninitialized variable. Solution: Initialize it. (John Marriott) https://github.com/vim/vim/commit/56e14698b45a9c4ef8fa65c55c9bfe86fbb3d6bf --- src/nvim/option.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/nvim/option.c b/src/nvim/option.c index 9fecd6521b..5d5d803646 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -3442,8 +3442,8 @@ static char_u *set_chars_option(win_T *wp, char_u **varp, bool set) int c1; int c2 = 0; int c3 = 0; - char_u *last_multispace; // Last occurrence of "multispace:" - int multispace_len = 0; // Length of lcs-multispace string + char_u *last_multispace = NULL; // Last occurrence of "multispace:" + int multispace_len = 0; // Length of lcs-multispace string struct chars_tab { int *cp; ///< char value -- cgit