build: initialize variable (#5194)

This commit is contained in:
Matt Fowles Kulukundis
2016-08-19 17:41:42 -04:00
committed by Justin M. Keyes
parent 6f0f8e7f4a
commit 12b5c846ba

View File

@@ -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