0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

updated for version 7.4.581

Problem:    Compiler warnings for unitinialized variables. (John Little)
Solution:   Initialize the variables.
This commit is contained in:
Bram Moolenaar
2015-01-18 14:08:56 +01:00
parent 164f3269b1
commit 7cbc703fdc
2 changed files with 5 additions and 2 deletions

View File

@@ -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[] */