diff options
author | Felipe Morales <hel.sheep@gmail.com> | 2014-08-23 02:09:04 -0400 |
---|---|---|
committer | Felipe Morales <hel.sheep@gmail.com> | 2014-09-04 00:18:24 -0400 |
commit | a8124602f00c5142493526b43cd21b89dcbfef3f (patch) | |
tree | 40619f0b0ed74e9af04c76d86cc3f49252a5bfc0 | |
parent | bf3d9457981c372bb33155045b070facffd01f65 (diff) | |
download | rneovim-a8124602f00c5142493526b43cd21b89dcbfef3f.tar.gz rneovim-a8124602f00c5142493526b43cd21b89dcbfef3f.tar.bz2 rneovim-a8124602f00c5142493526b43cd21b89dcbfef3f.zip |
vim-patch: 7.4.334
Problem: Unitialized variables, causing some problems.
Solution: Initialize the variables. (Dominique Pelle)
https://code.google.com/p/vim/source/detail?r=03d260a8ea0c0c67f424c387dbe2af5754e5e589
-rw-r--r-- | src/nvim/screen.c | 5 | ||||
-rw-r--r-- | src/nvim/version.c | 2 | ||||
-rw-r--r-- | src/nvim/window.c | 2 |
3 files changed, 4 insertions, 5 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c index 9b5e50cefc..d5a96489c1 100644 --- a/src/nvim/screen.c +++ b/src/nvim/screen.c @@ -5723,9 +5723,8 @@ next_search_hl ( } shl->rm.regprog = NULL; shl->lnum = 0; - got_int = FALSE; /* avoid the "Type :quit to exit Vim" - message */ - break; + got_int = FALSE; // avoid the "Type :quit to exit Vim" message + break; } } else if (cur != NULL) { nmatched = next_search_hl_pos(shl, lnum, &(cur->pos), matchcol); diff --git a/src/nvim/version.c b/src/nvim/version.c index b2c795081c..61154c6de7 100644 --- a/src/nvim/version.c +++ b/src/nvim/version.c @@ -261,7 +261,7 @@ static int included_patches[] = { //337, //336, 335, - //334, + 334, //333 NA //332 NA 331, diff --git a/src/nvim/window.c b/src/nvim/window.c index 536bfa2c5e..2e4e7f2992 100644 --- a/src/nvim/window.c +++ b/src/nvim/window.c @@ -5263,7 +5263,7 @@ int match_add(win_T *wp, char_u *grp, char_u *pat, int prio, int id, list_T *pos int len = 1; list_T *subl; listitem_T *subli; - int error; + int error = FALSE; if (li == NULL) { m->pos.pos[i].lnum = 0; |