Permalink
Browse files

patch 8.0.1044: warning for uninitialized variable

Problem:    Warning for uninitialized variable. (John Marriott)
Solution:   Initialize ind_pre.
  • Loading branch information...
brammool committed Sep 3, 2017
1 parent 4ec86dd commit 2254a8ad0cb596a0a0863b1af92353f018c0b355
Showing with 3 additions and 1 deletion.
  1. +1 −1 src/ops.c
  2. +2 −0 src/version.c
View
@@ -2507,7 +2507,7 @@ op_insert(oparg_T *oap, long count1)
{
long ins_len, pre_textlen = 0;
char_u *firstline, *ins_text;
colnr_T ind_pre, ind_post;
colnr_T ind_pre = 0, ind_post;
struct block_def bd;
int i;
pos_T t1;
View
@@ -769,6 +769,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1044,
/**/
1043,
/**/

0 comments on commit 2254a8a

Please sign in to comment.