0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

updated for version 7.4.334

Problem:    Unitialized variables, causing some problems.
Solution:   Initialize the variables. (Dominique Pelle)
This commit is contained in:
Bram Moolenaar
2014-06-18 21:20:11 +02:00
parent de993ea629
commit deae0f2566
3 changed files with 7 additions and 5 deletions

View File

@@ -6809,7 +6809,7 @@ match_add(wp, grp, pat, prio, id, pos_list)
}
/* Build new match. */
m = (matchitem_T *)alloc(sizeof(matchitem_T));
m = (matchitem_T *)alloc_clear(sizeof(matchitem_T));
m->id = id;
m->priority = prio;
m->pattern = pat == NULL ? NULL : vim_strsave(pat);
@@ -6835,7 +6835,7 @@ match_add(wp, grp, pat, prio, id, pos_list)
int len = 1;
list_T *subl;
listitem_T *subli;
int error;
int error = FALSE;
if (li == NULL)
{