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:
@@ -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[] */
|
||||
|
Reference in New Issue
Block a user