From: Bram Moolenaar Date: Sat, 12 May 2018 19:16:25 +0000 (+0200) Subject: patch 8.0.1824: Coverity warns for variable that may be uninitialized X-Git-Tag: v8.0.1824 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=73dd1bd54e3d358f156f45e956f6e56527238ac6;p=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. --- 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 diff --git a/src/version.c b/src/version.c index 8af1a9590..12a807326 100644 --- a/src/version.c +++ b/src/version.c @@ -761,6 +761,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1824, /**/ 1823, /**/