diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-05-12 21:16:25 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-05-12 21:16:25 +0200 |
commit | 73dd1bd54e3d358f156f45e956f6e56527238ac6 (patch) | |
tree | 3ea12c76ca9e56546c658b075d64d76436fae025 /src/terminal.c | |
parent | 54c6bafa1609f2d870874d0047b394670602350e (diff) | |
download | vim-git-73dd1bd54e3d358f156f45e956f6e56527238ac6.tar.gz |
patch 8.0.1824: Coverity warns for variable that may be uninitializedv8.0.1824
Problem: Coverity warns for variable that may be uninitialized.
Solution: Initialize the variable.
Diffstat (limited to 'src/terminal.c')
-rw-r--r-- | src/terminal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/terminal.c b/src/terminal.c index 48bacd9ba..21ef870de 100644 --- a/src/terminal.c +++ b/src/terminal.c @@ -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 |