]> granicus.if.org Git - vim/commitdiff
patch 8.0.1044: warning for uninitialized variable v8.0.1044
authorBram Moolenaar <Bram@vim.org>
Sun, 3 Sep 2017 12:03:43 +0000 (14:03 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 3 Sep 2017 12:03:43 +0000 (14:03 +0200)
Problem:    Warning for uninitialized variable. (John Marriott)
Solution:   Initialize ind_pre.

src/ops.c
src/version.c

index e8308bbcb84dea86aafffe8d40237f270883f4ed..6fb6947ee20c36ccf58607b35e849a74ecbd53ab 100644 (file)
--- 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;
index 2138f0ae9569d6c9961865b025e984e359b17146..0d2ca4f47ff68ba55eb58aed0305c28b9bf31932 100644 (file)
@@ -769,6 +769,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1044,
 /**/
     1043,
 /**/