diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-08-06 22:38:02 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-08-06 22:38:02 +0100 |
commit | bf9158408a9d27932b8678f824cf1fe32d3cd920 (patch) | |
tree | 8c75f6c75a9313a02e1dfc043b32a56682ee3311 /src/drawline.c | |
parent | 83bf11a1ffc5a7bc4a5ba81747df606d69c1465a (diff) |
patch 9.0.0161: warning for uninitialized variablev9.0.0161
Problem: Warning for uninitialized variable. (Tony Mechelynck)
Solution: Initialize line_attr_save.
Diffstat (limited to 'src/drawline.c')
-rw-r--r-- | src/drawline.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drawline.c b/src/drawline.c index 6b0d5b5838..824c416e2d 100644 --- a/src/drawline.c +++ b/src/drawline.c @@ -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; |