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.
diff --git a/src/terminal.c b/src/terminal.c
index 901bb9b..7029f49 100644
--- a/src/terminal.c
+++ b/src/terminal.c
@@ -2145,7 +2145,11 @@
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;
diff --git a/src/version.c b/src/version.c
index 5a1660a..e5cafdc 100644
--- a/src/version.c
+++ b/src/version.c
@@ -770,6 +770,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 889,
+/**/
888,
/**/
887,