]> granicus.if.org Git - vim/commitdiff
updated for version 7.4.581 v7.4.581
authorBram Moolenaar <Bram@vim.org>
Sun, 18 Jan 2015 13:08:56 +0000 (14:08 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 18 Jan 2015 13:08:56 +0000 (14:08 +0100)
Problem:    Compiler warnings for unitinialized variables. (John Little)
Solution:   Initialize the variables.

src/ops.c
src/version.c

index 0c3d11b87ff79f1fdf5d7a818cdb090eb1066c83..f0d372d898e6abc8b88c5753b77722c10da1ef25 100644 (file)
--- a/src/ops.c
+++ b/src/ops.c
@@ -5663,8 +5663,8 @@ read_viminfo_register(virp, force)
     int                set_prev = FALSE;
     char_u     *str;
     char_u     **array = NULL;
-    int                new_type;
-    colnr_T    new_width;
+    int                new_type = MCHAR; /* init to shut up compiler */
+    colnr_T    new_width = 0; /* init to shut up compiler */
 
     /* We only get here (hopefully) if line[0] == '"' */
     str = virp->vir_line + 1;
@@ -5747,6 +5747,7 @@ read_viminfo_register(virp, force)
                do_it = FALSE;
        }
     }
+
     if (do_it)
     {
        /* free y_array[] */
index cdde7ca52868d0605c1e70aed0eeb9dd8c9d4de4..4e8559ccc1187976b2227ea6e2c85656cc624550 100644 (file)
@@ -741,6 +741,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    581,
 /**/
     580,
 /**/