# HG changeset patch # User Christian Brabandt # Date 1519074007 -3600 # Node ID 803294329951e936e157dab64bbec78240ab0f3d # Parent 1b2b8b5e2181e463d1ca8d1d27078b510e3fb152 patch 8.0.1524: compiler warnings for uninitialized variables commit https://github.com/vim/vim/commit/9c8816bd306a003c2ac3dce161be3fef481c9902 Author: Bram Moolenaar Date: Mon Feb 19 21:50:42 2018 +0100 patch 8.0.1524: compiler warnings for uninitialized variables Problem: Compiler warnings for uninitialized variables. (Tony Mechelynck) Solution: Initialize variables. diff --git a/src/terminal.c b/src/terminal.c --- a/src/terminal.c +++ b/src/terminal.c @@ -3277,9 +3277,9 @@ term_load_dump(typval_T *argvars, typval char_u buf1[NUMBUFLEN]; char_u buf2[NUMBUFLEN]; char_u *fname1; - char_u *fname2; + char_u *fname2 = NULL; FILE *fd1; - FILE *fd2; + FILE *fd2 = NULL; char_u *textline = NULL; /* First open the files. If this fails bail out. */ @@ -3460,7 +3460,7 @@ term_load_dump(typval_T *argvars, typval theend: vim_free(textline); fclose(fd1); - if (do_diff) + if (fd2 != NULL) fclose(fd2); } diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -772,6 +772,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1524, +/**/ 1523, /**/ 1522,