1
0
forked from aniani/vim

patch 8.2.3527: gcc complains about uninitialized variable

Problem:    Gcc complains about uninitialized variable. (Tony Mechelynck)
Solution:   Initialize it.
This commit is contained in:
Bram Moolenaar
2021-10-17 11:33:47 +01:00
parent 40bd5a1540
commit 9d4b8caf9e
2 changed files with 4 additions and 1 deletions

View File

@@ -5605,7 +5605,7 @@ gui_gtk2_draw_string(int row, int col, char_u *s, int len, int flags)
int byte_sum; // byte position in string
char_u *cs; // current *s pointer
int needs_pango; // look ahead, 0=ascii 1=unicode/ligatures
int should_need_pango;
int should_need_pango = FALSE;
int slen;
int is_ligature;
int next_is_ligature;
@@ -5743,6 +5743,7 @@ gui_gtk2_draw_string(int row, int col, char_u *s, int len, int flags)
slen++; // ascii
}
}
// temporarily zero terminate substring, print, restore char, wrap
backup_ch = *(cs + slen);
*(cs + slen) = 0;

View File

@@ -757,6 +757,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
3527,
/**/
3526,
/**/