0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.0.0889: gcc gives warnings for uninitialized variables

Problem:    Gcc gives warnings for uninitialized variables. (Tony Mechelynck)
Solution:   Initialize variables even though they are not used.
This commit is contained in:
Bram Moolenaar
2017-08-07 21:26:29 +02:00
parent 116a0f800c
commit e20b3eba73
2 changed files with 6 additions and 0 deletions

View File

@@ -2145,7 +2145,11 @@ f_term_scrape(typval_T *argvars, typval_T *rettv)
pos.row = get_row_number(&argvars[1], term);
if (term->tl_vterm != NULL)
{
screen = vterm_obtain_screen(term->tl_vterm);
p = NULL;
line = NULL;
}
else
{
linenr_T lnum = pos.row + term->tl_scrollback_scrolled;

View File

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