0
0
mirror of https://github.com/vim/vim.git synced 2025-10-28 09:27:14 -04:00

patch 9.0.0161: warning for uninitialized variable

Problem:    Warning for uninitialized variable. (Tony Mechelynck)
Solution:   Initialize line_attr_save.
This commit is contained in:
Bram Moolenaar
2022-08-06 22:38:02 +01:00
parent 83bf11a1ff
commit bf9158408a
2 changed files with 3 additions and 1 deletions

View File

@@ -588,7 +588,7 @@ win_line(
|| defined(FEAT_SYN_HL) || defined(FEAT_DIFF)
# define LINE_ATTR
int line_attr = 0; // attribute for the whole line
int line_attr_save;
int line_attr_save = 0;
#endif
#ifdef FEAT_SIGNS
int sign_present = FALSE;