summaryrefslogtreecommitdiff
path: root/src/ops.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2015-07-12 16:21:23 +0200
committerBram Moolenaar <Bram@vim.org>2015-07-12 16:21:23 +0200
commit1db43b1145fe466b5d41af6744a08083983de3a9 (patch)
tree77976095452e148bf15f09c4a36564675d1e17b8 /src/ops.c
parent3ec326198029d5a59413b3b8b33dbc9c06c4f28b (diff)
downloadvim-git-1db43b1145fe466b5d41af6744a08083983de3a9.tar.gz
patch 7.4.780v7.4.780
Problem: Compiler complains about uninitialized variable and clobbered variables. Solution: Add Initialization. Make variables static.
Diffstat (limited to 'src/ops.c')
-rw-r--r--src/ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ops.c b/src/ops.c
index e88205171..671c92b4f 100644
--- a/src/ops.c
+++ b/src/ops.c
@@ -5403,7 +5403,7 @@ do_addsub(command, Prenum1, g_cmd)
int i;
int lnum = curwin->w_cursor.lnum;
int lnume = curwin->w_cursor.lnum;
- int startcol;
+ int startcol = 0;
int did_change = FALSE;
dohex = (vim_strchr(curbuf->b_p_nf, 'x') != NULL); /* "heX" */