0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

patch 8.1.1312: Coverity warning for using uninitialized variable

Problem:    Coverity warning for using uninitialized variable.
Solution:   Clear exarg_T.
This commit is contained in:
Bram Moolenaar
2019-05-09 21:48:37 +02:00
parent 23b5139234
commit 4ca41534b7
4 changed files with 9 additions and 3 deletions

View File

@@ -1190,9 +1190,9 @@ dialog_changed(
else
ret = vim_dialog_yesnocancel(VIM_QUESTION, NULL, buff, 1);
/* Init ea pseudo-structure, this is needed for the check_overwrite()
* function. */
ea.append = ea.forceit = FALSE;
// Init ea pseudo-structure, this is needed for the check_overwrite()
// function.
vim_memset(&ea, 0, sizeof(ea));
if (ret == VIM_YES)
{