Skip to content

Commit a2a90d5

Browse files
chrisbrabrammool
authored andcommitted
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)
1 parent 590aae3 commit a2a90d5

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/memline.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3626,7 +3626,7 @@ adjust_text_props_for_delete(
36263626
int idx;
36273627
int line_start;
36283628
long line_size;
3629-
int this_props_len;
3629+
int this_props_len = 0;
36303630
char_u *text;
36313631
size_t textlen;
36323632
int found;

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -695,6 +695,8 @@ static char *(features[]) =
695695

696696
static int included_patches[] =
697697
{ /* Add new patch number below this line */
698+
/**/
699+
1666,
698700
/**/
699701
1665,
700702
/**/

0 commit comments

Comments
 (0)