aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/terminal.c
diff options
context:
space:
mode:
authorMatt Fowles Kulukundis <matt.fowles@gmail.com>2016-08-19 17:41:42 -0400
committerJustin M. Keyes <justinkz@gmail.com>2016-08-19 17:41:42 -0400
commit12b5c846ba6a0e349e689afaad8610b80444e1a0 (patch)
tree99e7015f63d919a18e117804f2bd959a49d1fc99 /src/nvim/terminal.c
parent6f0f8e7f4abd7a238250b71f8de208ff81e78d9c (diff)
downloadrneovim-12b5c846ba6a0e349e689afaad8610b80444e1a0.tar.gz
rneovim-12b5c846ba6a0e349e689afaad8610b80444e1a0.tar.bz2
rneovim-12b5c846ba6a0e349e689afaad8610b80444e1a0.zip
build: initialize variable (#5194)
Diffstat (limited to 'src/nvim/terminal.c')
-rw-r--r--src/nvim/terminal.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/terminal.c b/src/nvim/terminal.c
index 6f50c03be9..90636326a5 100644
--- a/src/nvim/terminal.c
+++ b/src/nvim/terminal.c
@@ -1081,7 +1081,8 @@ static void redraw(bool restore_cursor)
restore_cursor = true;
}
- int save_row, save_col;
+ int save_row = 0;
+ int save_col = 0;
if (restore_cursor) {
// save the current row/col to restore after updating screen when not
// focused