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
This commit is contained in:
Felipe Morales
2014-08-23 02:09:04 -04:00
parent bf3d945798
commit a8124602f0
3 changed files with 4 additions and 5 deletions

View File

@@ -5723,9 +5723,8 @@ next_search_hl (
} }
shl->rm.regprog = NULL; shl->rm.regprog = NULL;
shl->lnum = 0; shl->lnum = 0;
got_int = FALSE; /* avoid the "Type :quit to exit Vim" got_int = FALSE; // avoid the "Type :quit to exit Vim" message
message */ break;
break;
} }
} else if (cur != NULL) { } else if (cur != NULL) {
nmatched = next_search_hl_pos(shl, lnum, &(cur->pos), matchcol); nmatched = next_search_hl_pos(shl, lnum, &(cur->pos), matchcol);

View File

@@ -261,7 +261,7 @@ static int included_patches[] = {
//337, //337,
//336, //336,
335, 335,
//334, 334,
//333 NA //333 NA
//332 NA //332 NA
331, 331,

View File

@@ -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; int len = 1;
list_T *subl; list_T *subl;
listitem_T *subli; listitem_T *subli;
int error; int error = FALSE;
if (li == NULL) { if (li == NULL) {
m->pos.pos[i].lnum = 0; m->pos.pos[i].lnum = 0;