diff options
author | watiko <service@mail.watiko.net> | 2016-01-15 17:06:38 +0900 |
---|---|---|
committer | watiko <service@mail.watiko.net> | 2016-02-01 03:43:37 +0900 |
commit | b20b8f9f0450e0a3188f2f1c89d575399e0ab9a6 (patch) | |
tree | 66cb82b4c5ffc31cde7a44611098efbfdce913a8 /src | |
parent | d050d6390d316193277bc9ce8ea4aa230e38173f (diff) | |
download | rneovim-b20b8f9f0450e0a3188f2f1c89d575399e0ab9a6.tar.gz rneovim-b20b8f9f0450e0a3188f2f1c89d575399e0ab9a6.tar.bz2 rneovim-b20b8f9f0450e0a3188f2f1c89d575399e0ab9a6.zip |
vim-patch:7.4.780
Problem: Compiler complains about uninitialized variable and clobbered
variables.
Solution: Add Initialization. Make variables static.
https://github.com/vim/vim/commit/1db43b1145fe466b5d41af6744a08083983de3a9
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/ops.c | 2 | ||||
-rw-r--r-- | src/nvim/version.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c index f85246344c..a7c2f2ae72 100644 --- a/src/nvim/ops.c +++ b/src/nvim/ops.c @@ -4230,7 +4230,7 @@ int do_addsub(int command, linenr_T Prenum1, bool g_cmd) bool visual = VIsual_active; int lnum = curwin->w_cursor.lnum; int lnume = curwin->w_cursor.lnum; - int startcol; + int startcol = 0; bool did_change = false; dohex = (vim_strchr(curbuf->b_p_nf, 'x') != NULL); // "heX" diff --git a/src/nvim/version.c b/src/nvim/version.c index 3c15869ea0..955a042fcc 100644 --- a/src/nvim/version.c +++ b/src/nvim/version.c @@ -354,7 +354,7 @@ static int included_patches[] = { // 783 NA // 782, 781, - // 780 NA + 780, 779, 778, // 777 NA |