0
0
mirror of https://github.com/vim/vim.git synced 2025-09-28 04:24:06 -04:00

patch 9.0.1666: compiler may warn for uninitialized variable

Problem:    Compiler may warn for uninitialized variable.
Solution:   Initialize this_props_len. (Christian Brabandt, closes #12599)
This commit is contained in:
Christian Brabandt
2023-06-26 18:48:09 +01:00
committed by Bram Moolenaar
parent 590aae3557
commit a2a90d5e20
2 changed files with 3 additions and 1 deletions

View File

@@ -3626,7 +3626,7 @@ adjust_text_props_for_delete(
int idx;
int line_start;
long line_size;
int this_props_len;
int this_props_len = 0;
char_u *text;
size_t textlen;
int found;

View File

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