# HG changeset patch # User Bram Moolenaar # Date 1421586536 -3600 # Node ID e1874a4524f8c97efed78e215fd5ff91f3569351 # Parent 2bf1d3dc0467589efc079e4548ee717aad6d9b42 updated for version 7.4.581 Problem: Compiler warnings for unitinialized variables. (John Little) Solution: Initialize the variables. diff --git a/src/ops.c b/src/ops.c --- 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[] */ diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -742,6 +742,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 581, +/**/ 580, /**/ 579,