diff options
author | Bram Moolenaar <bram@vim.org> | 2015-01-18 14:08:56 +0100 |
---|---|---|
committer | Bram Moolenaar <bram@vim.org> | 2015-01-18 14:08:56 +0100 |
commit | 54dc49de3db6548ed32547a3bb8aaf7277dcdd9f (patch) | |
tree | 5c522ff33ce3f63e468252cb3609910d791937d2 | |
parent | 8d931661bf15ba6319f02009234cd6ba35fada66 (diff) | |
download | vim-54dc49de3db6548ed32547a3bb8aaf7277dcdd9f.tar.gz |
Problem: Compiler warnings for unitinialized variables. (John Little)
Solution: Initialize the variables.
-rw-r--r-- | src/ops.c | 5 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 5 insertions, 2 deletions
@@ -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 index cdde7ca5..4e8559cc 100644 --- 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, |