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:
@@ -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
|
int byte_sum; // byte position in string
|
||||||
char_u *cs; // current *s pointer
|
char_u *cs; // current *s pointer
|
||||||
int needs_pango; // look ahead, 0=ascii 1=unicode/ligatures
|
int needs_pango; // look ahead, 0=ascii 1=unicode/ligatures
|
||||||
int should_need_pango;
|
int should_need_pango = FALSE;
|
||||||
int slen;
|
int slen;
|
||||||
int is_ligature;
|
int is_ligature;
|
||||||
int next_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
|
slen++; // ascii
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// temporarily zero terminate substring, print, restore char, wrap
|
// temporarily zero terminate substring, print, restore char, wrap
|
||||||
backup_ch = *(cs + slen);
|
backup_ch = *(cs + slen);
|
||||||
*(cs + slen) = 0;
|
*(cs + slen) = 0;
|
||||||
|
@@ -757,6 +757,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
3527,
|
||||||
/**/
|
/**/
|
||||||
3526,
|
3526,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user