]> granicus.if.org Git - vim/commitdiff
updated for version 7.4.334 v7.4.334
authorBram Moolenaar <Bram@vim.org>
Wed, 18 Jun 2014 19:20:11 +0000 (21:20 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 18 Jun 2014 19:20:11 +0000 (21:20 +0200)
Problem:    Unitialized variables, causing some problems.
Solution:   Initialize the variables. (Dominique Pelle)

src/screen.c
src/version.c
src/window.c

index e0fbbb463125cda30433982b9db5a4d5e565773b..872ef08a5a06cdc05709eee84ca379a1de65eb68 100644 (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 */
index 300dedbb02278e8047f8e2634ea36aca81390997..bf8567a9e58b5b3a648c0d6c321981913136d5f8 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    334,
 /**/
     333,
 /**/
index f76812a0ea904d8eac1279494820a673a147e2fa..ae82fe7db5f0f14cd8d0a1989b4dbd6509d93c13 100644 (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)
            {