Problem: Unitialized variables, causing some problems.
Solution: Initialize the variables. (Dominique Pelle)
match_T *shl; /* points to search_hl or a match */
linenr_T lnum;
colnr_T mincol; /* minimal column for a match */
- matchitem_T *cur; /* to retrieve match postions if any */
+ matchitem_T *cur; /* to retrieve match positions if any */
{
linenr_T l;
colnr_T matchcol;
}
}
else if (cur != NULL)
- {
nmatched = next_search_hl_pos(shl, lnum, &(cur->pos), matchcol);
- }
+ else
+ nmatched = 0;
if (nmatched == 0)
{
shl->lnum = 0; /* no match found */
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 334,
/**/
333,
/**/
}
/* 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);
int len = 1;
list_T *subl;
listitem_T *subli;
- int error;
+ int error = FALSE;
if (li == NULL)
{