]> granicus.if.org Git - vim/commitdiff
patch 8.0.1824: Coverity warns for variable that may be uninitialized v8.0.1824
authorBram Moolenaar <Bram@vim.org>
Sat, 12 May 2018 19:16:25 +0000 (21:16 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 12 May 2018 19:16:25 +0000 (21:16 +0200)
Problem:    Coverity warns for variable that may be uninitialized.
Solution:   Initialize the variable.

src/terminal.c
src/version.c

index 48bacd9ba9aca8e69ab234206110b6fe562f0577..21ef870def6488d6879eb2dca4fe12de9e802054 100644 (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
index 8af1a9590857b87fa24a2ae8c7c579d2b376d40d..12a8073262896191ed70c817d7dccb80076c1455 100644 (file)
@@ -761,6 +761,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1824,
 /**/
     1823,
 /**/