changeset 12329:0b10cff73322 v8.0.1044

patch 8.0.1044: warning for uninitialized variable commit https://github.com/vim/vim/commit/2254a8ad0cb596a0a0863b1af92353f018c0b355 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Sep 3 14:03:43 2017 +0200 patch 8.0.1044: warning for uninitialized variable Problem: Warning for uninitialized variable. (John Marriott) Solution: Initialize ind_pre.
author Christian Brabandt <cb@256bit.org>
date Sun, 03 Sep 2017 14:15:03 +0200
parents 36aad5463871
children 37b6160409e0
files src/ops.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ops.c
+++ b/src/ops.c
@@ -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;
--- a/src/version.c
+++ b/src/version.c
@@ -770,6 +770,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1044,
+/**/
     1043,
 /**/
     1042,