Skip to content

Commit 2254a8a

Browse files
committed
patch 8.0.1044: warning for uninitialized variable
Problem: Warning for uninitialized variable. (John Marriott) Solution: Initialize ind_pre.
1 parent 4ec86dd commit 2254a8a

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/ops.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2507,7 +2507,7 @@ op_insert(oparg_T *oap, long count1)
25072507
{
25082508
long ins_len, pre_textlen = 0;
25092509
char_u *firstline, *ins_text;
2510-
colnr_T ind_pre, ind_post;
2510+
colnr_T ind_pre = 0, ind_post;
25112511
struct block_def bd;
25122512
int i;
25132513
pos_T t1;

src/version.c

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

770770
static int included_patches[] =
771771
{ /* Add new patch number below this line */
772+
/**/
773+
1044,
772774
/**/
773775
1043,
774776
/**/

0 commit comments

Comments
 (0)