Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
brammool committed Aug 7, 2017
1 parent 116a0f8 commit e20b3eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/terminal.c
Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -769,6 +769,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
889,
/**/
888,
/**/
Expand Down

0 comments on commit e20b3eb

Please sign in to comment.