comparison src/terminal.c @ 13300:803294329951 v8.0.1524

patch 8.0.1524: compiler warnings for uninitialized variables commit https://github.com/vim/vim/commit/9c8816bd306a003c2ac3dce161be3fef481c9902 Author: Bram Moolenaar <Bram@vim.org> 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.
author Christian Brabandt <cb@256bit.org>
date Mon, 19 Feb 2018 22:00:07 +0100
parents a88c5e12b860
children 013c44d9dc09
comparison
equal deleted inserted replaced
13299:1b2b8b5e2181 13300:803294329951
3275 jobopt_T opt; 3275 jobopt_T opt;
3276 buf_T *buf; 3276 buf_T *buf;
3277 char_u buf1[NUMBUFLEN]; 3277 char_u buf1[NUMBUFLEN];
3278 char_u buf2[NUMBUFLEN]; 3278 char_u buf2[NUMBUFLEN];
3279 char_u *fname1; 3279 char_u *fname1;
3280 char_u *fname2; 3280 char_u *fname2 = NULL;
3281 FILE *fd1; 3281 FILE *fd1;
3282 FILE *fd2; 3282 FILE *fd2 = NULL;
3283 char_u *textline = NULL; 3283 char_u *textline = NULL;
3284 3284
3285 /* First open the files. If this fails bail out. */ 3285 /* First open the files. If this fails bail out. */
3286 fname1 = get_tv_string_buf_chk(&argvars[0], buf1); 3286 fname1 = get_tv_string_buf_chk(&argvars[0], buf1);
3287 if (do_diff) 3287 if (do_diff)
3458 } 3458 }
3459 3459
3460 theend: 3460 theend:
3461 vim_free(textline); 3461 vim_free(textline);
3462 fclose(fd1); 3462 fclose(fd1);
3463 if (do_diff) 3463 if (fd2 != NULL)
3464 fclose(fd2); 3464 fclose(fd2);
3465 } 3465 }
3466 3466
3467 /* 3467 /*
3468 * If the current buffer shows the output of term_dumpdiff(), swap the top and 3468 * If the current buffer shows the output of term_dumpdiff(), swap the top and