diff options
author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-09-17 22:39:00 -0400 |
---|---|---|
committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-09-17 22:40:29 -0400 |
commit | 58559a22498bed8a53d2f85f8ae4e1add7bb9e5d (patch) | |
tree | 217218f51fcec4107c2b7c66387a69333c3445d0 /src | |
parent | a00247e147dc60d00cda4f8aa5380bb70fe0e272 (diff) | |
download | rneovim-58559a22498bed8a53d2f85f8ae4e1add7bb9e5d.tar.gz rneovim-58559a22498bed8a53d2f85f8ae4e1add7bb9e5d.tar.bz2 rneovim-58559a22498bed8a53d2f85f8ae4e1add7bb9e5d.zip |
vim-patch:8.0.1443: compiler complains about uninitialized variable
Problem: Compiler complains about uninitialized variable. (Tony Mechelynck)
Solution: Assign a value to the variable.
https://github.com/vim/vim/commit/059fd01021779ee369c1e55557275f6c349fda9e
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/undo.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/undo.c b/src/nvim/undo.c index e15b9ec796..2a86cc1fea 100644 --- a/src/nvim/undo.c +++ b/src/nvim/undo.c @@ -1901,7 +1901,8 @@ void undo_time(long step, bool sec, bool file, bool absolute) // When "target" is 0; Back to origin. if (target == 0) { - goto found; + mark = lastmark; // avoid that GCC complains + goto target_zero; } /* @@ -2020,7 +2021,7 @@ void undo_time(long step, bool sec, bool file, bool absolute) } } -found: +target_zero: // If we found it: Follow the path to go to where we want to be. if (uhp != NULL || target == 0) { // First go up the tree as much as needed. |