diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-05-09 21:48:37 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-05-09 21:48:37 +0200 |
commit | 4ca41534b726c4116d2e430e877e34146b4d4831 (patch) | |
tree | 25e8169afe4e49d7febd83c6319390166756f9a3 /src/quickfix.c | |
parent | 23b5139234a79567097ca73aba15ea134381b934 (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/quickfix.c')
-rw-r--r-- | src/quickfix.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/quickfix.c b/src/quickfix.c index 61576505a9..cf3b274843 100644 --- a/src/quickfix.c +++ b/src/quickfix.c @@ -5809,6 +5809,7 @@ vgr_jump_to_match( { exarg_T ea; + vim_memset(&ea, 0, sizeof(ea)); ea.arg = target_dir; ea.cmdidx = CMD_lcd; ex_cd(&ea); @@ -6109,6 +6110,7 @@ restore_start_dir(char_u *dirname_start) // appropriate ex command and executing it. exarg_T ea; + vim_memset(&ea, 0, sizeof(ea)); ea.arg = dirname_start; ea.cmdidx = (curwin->w_localdir == NULL) ? CMD_cd : CMD_lcd; ex_cd(&ea); |