Permalink
Browse files

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 e20b3eba731bafb97c609dd20a4c378c105acc0d
Showing with 6 additions and 0 deletions.
  1. +4 −0 src/terminal.c
  2. +2 −0 src/version.c
View
@@ -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
@@ -769,6 +769,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
889,
/**/
888,
/**/

0 comments on commit e20b3eb

Please sign in to comment.