summaryrefslogtreecommitdiffstats
path: root/src/move.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-11-24 14:27:44 +0100
committerBram Moolenaar <Bram@vim.org>2018-11-24 14:27:44 +0100
commit4e303c8ba8dcd0566a1ad7c82ff18eb016eea335 (patch)
tree45c976f649d0e81e8da59a1fde57008697d76d7b /src/move.c
parentf951416a8396a54bbbe21de1a8b16716428549f2 (diff)
patch 8.1.0543: Coverity warns for leaking memory and using wrong structv8.1.0543
Problem: Coverity warns for leaking memory and using wrong struct. Solution: Free pointer when allocation fails. Change "boff" to "loff". (closes #3634)
Diffstat (limited to 'src/move.c')
-rw-r--r--src/move.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/move.c b/src/move.c
index 214c362f4e..a94a1ab9d3 100644
--- a/src/move.c
+++ b/src/move.c
@@ -1961,7 +1961,7 @@ scroll_cursor_bot(int min_scroll, int set_topbot)
scrolled += loff.height;
if (loff.lnum == curwin->w_botline
#ifdef FEAT_DIFF
- && boff.fill == 0
+ && loff.fill == 0
#endif
)
scrolled -= curwin->w_empty_rows;