0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -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

@@ -7363,7 +7363,7 @@ next_search_hl(win, shl, lnum, mincol, cur)
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;
@@ -7458,9 +7458,9 @@ next_search_hl(win, shl, lnum, mincol, cur)
}
}
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 */