Skip to content

Commit

Permalink
patch 9.0.1666: compiler may warn for uninitialized variable
Browse files Browse the repository at this point in the history
Problem:    Compiler may warn for uninitialized variable.
Solution:   Initialize this_props_len. (Christian Brabandt, closes #12599)
  • Loading branch information
chrisbra authored and brammool committed Jun 26, 2023
1 parent 590aae3 commit a2a90d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/memline.c
Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -695,6 +695,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1666,
/**/
1665,
/**/
Expand Down

0 comments on commit a2a90d5

Please sign in to comment.