vim-patch:8.1.1642: may use uninitialized variable

Problem:    May use uninitialized variable. (Patrick Palka)
Solution:   Initialize variables earlier. (closes vim/vim#4623)
ec572ad6a6
This commit is contained in:
Jan Edmund Lazo
2020-02-23 18:28:11 -05:00
parent a78e8f6e1b
commit ab38df2fc5
3 changed files with 29 additions and 18 deletions

View File

@@ -412,9 +412,9 @@ EXTERN vimmenu_T *root_menu INIT(= NULL);
*/
EXTERN int sys_menu INIT(= FALSE);
/* While redrawing the screen this flag is set. It means the screen size
* ('lines' and 'rows') must not be changed. */
EXTERN int updating_screen INIT(= FALSE);
// While redrawing the screen this flag is set. It means the screen size
// ('lines' and 'rows') must not be changed.
EXTERN int updating_screen INIT(= 0);
/*
* All windows are linked in a list. firstwin points to the first entry,