Mercurial > vim
changeset 25780:3ca409d4daa2 v8.2.3425
patch 8.2.3425: warning for using uninitialized variable
Commit: https://github.com/vim/vim/commit/56e14698b45a9c4ef8fa65c55c9bfe86fbb3d6bf
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Sep 11 12:15:09 2021 +0200
patch 8.2.3425: warning for using uninitialized variable
Problem: Warning for using uninitialized variable.
Solution: Initialize it. (John Marriott)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 11 Sep 2021 12:30:06 +0200 |
parents | 2acf2d6dbffc |
children | 2a8f80b85fe7 |
files | src/screen.c src/version.c |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/screen.c +++ b/src/screen.c @@ -4787,8 +4787,8 @@ set_chars_option(win_T *wp, char_u **var int round, i, len, entries; char_u *p, *s; int c1 = 0, c2 = 0, 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 charstab { int *cp;