summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-09-03 14:03:43 +0200
committerBram Moolenaar <Bram@vim.org>2017-09-03 14:03:43 +0200
commit2254a8ad0cb596a0a0863b1af92353f018c0b355 (patch)
tree8cfa5e8c1bcf95e8f07b4eb20f3ec39d23ba30ea /src
parent4ec86ddd77a89766e42bd0a6cfcf10af4c3d03b2 (diff)
downloadvim-2254a8ad0cb596a0a0863b1af92353f018c0b355.zip
patch 8.0.1044: warning for uninitialized variable
Problem: Warning for uninitialized variable. (John Marriott) Solution: Initialize ind_pre.
Diffstat (limited to 'src')
-rw-r--r--src/ops.c2
-rw-r--r--src/version.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/ops.c b/src/ops.c
index e8308bbcb..6fb6947ee 100644
--- 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;
diff --git a/src/version.c b/src/version.c
index 2138f0ae9..0d2ca4f47 100644
--- 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,