diff options
author | zeertzjq <zeertzjq@outlook.com> | 2021-09-19 13:13:44 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2021-09-19 13:13:44 +0800 |
commit | a348c666a3ffd73bf7918c3904d0adc325c08465 (patch) | |
tree | 0c1474604f58959fe23510969a86277efec49cb0 /src | |
parent | 51567db4b6740004698492ed8b8fa13b53d20b48 (diff) | |
download | rneovim-a348c666a3ffd73bf7918c3904d0adc325c08465.tar.gz rneovim-a348c666a3ffd73bf7918c3904d0adc325c08465.tar.bz2 rneovim-a348c666a3ffd73bf7918c3904d0adc325c08465.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/option.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 |