summaryrefslogtreecommitdiffstats
path: root/src/ex_cmds2.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-05-09 21:48:37 +0200
committerBram Moolenaar <Bram@vim.org>2019-05-09 21:48:37 +0200
commit4ca41534b726c4116d2e430e877e34146b4d4831 (patch)
tree25e8169afe4e49d7febd83c6319390166756f9a3 /src/ex_cmds2.c
parent23b5139234a79567097ca73aba15ea134381b934 (diff)
patch 8.1.1312: Coverity warning for using uninitialized variablev8.1.1312
Problem: Coverity warning for using uninitialized variable. Solution: Clear exarg_T.
Diffstat (limited to 'src/ex_cmds2.c')
-rw-r--r--src/ex_cmds2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c
index 1e9d18e833..8bab8536b3 100644
--- a/src/ex_cmds2.c
+++ b/src/ex_cmds2.c
@@ -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)
{