1
0
forked from aniani/vim

patch 8.0.1524: compiler warnings for uninitialized variables

Problem:    Compiler warnings for uninitialized variables. (Tony Mechelynck)
Solution:   Initialize variables.
This commit is contained in:
Bram Moolenaar
2018-02-19 21:50:42 +01:00
parent d96ff16511
commit 9c8816bd30
2 changed files with 5 additions and 3 deletions

View File

@@ -3277,9 +3277,9 @@ term_load_dump(typval_T *argvars, typval_T *rettv, int do_diff)
char_u buf1[NUMBUFLEN]; char_u buf1[NUMBUFLEN];
char_u buf2[NUMBUFLEN]; char_u buf2[NUMBUFLEN];
char_u *fname1; char_u *fname1;
char_u *fname2; char_u *fname2 = NULL;
FILE *fd1; FILE *fd1;
FILE *fd2; FILE *fd2 = NULL;
char_u *textline = NULL; char_u *textline = NULL;
/* First open the files. If this fails bail out. */ /* First open the files. If this fails bail out. */
@@ -3460,7 +3460,7 @@ term_load_dump(typval_T *argvars, typval_T *rettv, int do_diff)
theend: theend:
vim_free(textline); vim_free(textline);
fclose(fd1); fclose(fd1);
if (do_diff) if (fd2 != NULL)
fclose(fd2); fclose(fd2);
} }

View File

@@ -771,6 +771,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1524,
/**/ /**/
1523, 1523,
/**/ /**/