1
0
forked from aniani/vim

patch 8.0.1824: Coverity warns for variable that may be uninitialized

Problem:    Coverity warns for variable that may be uninitialized.
Solution:   Initialize the variable.
This commit is contained in:
Bram Moolenaar
2018-05-12 21:16:25 +02:00
parent 54c6bafa16
commit 73dd1bd54e
2 changed files with 3 additions and 1 deletions

View File

@@ -2088,7 +2088,7 @@ terminal_loop(int blocking)
int tty_fd = curbuf->b_term->tl_job->jv_channel
->ch_part[get_tty_part(curbuf->b_term)].ch_fd;
#endif
int restore_cursor;
int restore_cursor = FALSE;
/* Remember the terminal we are sending keys to. However, the terminal
* might be closed while waiting for a character, e.g. typing "exit" in a