summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2014-06-18 21:20:11 +0200
committerBram Moolenaar <Bram@vim.org>2014-06-18 21:20:11 +0200
commitdeae0f25663bdcd30b7fd8eb440ab0d34ee7ed45 (patch)
tree2b7d5ed4de901fc43b3aad9989860d7764498b48 /src
parentde993ea629c532686c3d888246609d2b0c1880b7 (diff)
downloadvim-deae0f25663bdcd30b7fd8eb440ab0d34ee7ed45.zip
updated for version 7.4.334
Problem: Unitialized variables, causing some problems. Solution: Initialize the variables. (Dominique Pelle)
Diffstat (limited to 'src')
-rw-r--r--src/screen.c6
-rw-r--r--src/version.c2
-rw-r--r--src/window.c4
3 files changed, 7 insertions, 5 deletions
diff --git a/src/screen.c b/src/screen.c
index e0fbbb463..872ef08a5 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -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 */
diff --git a/src/version.c b/src/version.c
index 300dedbb0..bf8567a9e 100644
--- a/src/version.c
+++ b/src/version.c
@@ -735,6 +735,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 334,
+/**/
333,
/**/
332,
diff --git a/src/window.c b/src/window.c
index f76812a0e..ae82fe7db 100644
--- a/src/window.c
+++ b/src/window.c
@@ -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)
{