Mercurial > vim
changeset 13906:0ae89b121c58 v8.0.1824
patch 8.0.1824: Coverity warns for variable that may be uninitialized
commit https://github.com/vim/vim/commit/73dd1bd54e3d358f156f45e956f6e56527238ac6
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat May 12 21:16:25 2018 +0200
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.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 12 May 2018 21:30:06 +0200 |
parents | 7c7d949c4217 |
children | 40befa728594 |
files | src/terminal.c src/version.c |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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