summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-01-31 14:25:53 +0100
committerBram Moolenaar <Bram@vim.org>2018-01-31 14:25:53 +0100
commit059fd01021779ee369c1e55557275f6c349fda9e (patch)
tree78a538e6e2b083d8154c37f4633fefe3addf00e6
parenta172b63ab8661019dba61285a738c8b6b55a33aa (diff)
patch 8.0.1443: compiler complains about uninitialized variablev8.0.1443
Problem: Compiler complains about uninitialized variable. (Tony Mechelynck) Solution: Assign a value to the variable.
-rw-r--r--src/undo.c7
-rw-r--r--src/version.c2
2 files changed, 7 insertions, 2 deletions
diff --git a/src/undo.c b/src/undo.c
index d2ac457cfa..0297e3f661 100644
--- a/src/undo.c
+++ b/src/undo.c
@@ -2364,7 +2364,10 @@ undo_time(
/* When "target" is 0; Back to origin. */
if (target == 0)
- goto found;
+ {
+ mark = lastmark; /* avoid that GCC complains */
+ goto target_zero;
+ }
/*
* May do this twice:
@@ -2491,7 +2494,7 @@ undo_time(
above = TRUE; /* stop above the header */
}
-found:
+target_zero:
/* If we found it: Follow the path to go to where we want to be. */
if (uhp != NULL || target == 0)
{
diff --git a/src/version.c b/src/version.c
index 43e89a2847..2c0306d6d9 100644
--- a/src/version.c
+++ b/src/version.c
@@ -772,6 +772,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1443,
+/**/
1442,
/**/
1441,