summaryrefslogtreecommitdiff
path: root/src/channel.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/channel.c
parent23b5139234a79567097ca73aba15ea134381b934 (diff)
downloadvim-git-4ca41534b726c4116d2e430e877e34146b4d4831.tar.gz
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/channel.c')
-rw-r--r--src/channel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/channel.c b/src/channel.c
index aac8656cf..a29414f69 100644
--- a/src/channel.c
+++ b/src/channel.c
@@ -2308,6 +2308,7 @@ channel_exe_cmd(channel_T *channel, ch_part_T part, typval_T *argv)
exarg_T ea;
ch_log(channel, "Executing normal command '%s'", (char *)arg);
+ vim_memset(&ea, 0, sizeof(ea));
ea.arg = arg;
ea.addr_count = 0;
ea.forceit = TRUE; /* no mapping */
@@ -2318,6 +2319,7 @@ channel_exe_cmd(channel_T *channel, ch_part_T part, typval_T *argv)
exarg_T ea;
ch_log(channel, "redraw");
+ vim_memset(&ea, 0, sizeof(ea));
ea.forceit = *arg != NUL;
ex_redraw(&ea);
showruler(FALSE);