Mercurial > vim
diff src/quickfix.c @ 16619:8f0ea605ec96 v8.1.1312
patch 8.1.1312: Coverity warning for using uninitialized variable
commit https://github.com/vim/vim/commit/4ca41534b726c4116d2e430e877e34146b4d4831
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu May 9 21:48:37 2019 +0200
patch 8.1.1312: Coverity warning for using uninitialized variable
Problem: Coverity warning for using uninitialized variable.
Solution: Clear exarg_T.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 09 May 2019 22:00:06 +0200 |
parents | 1302bc0b80db |
children | ef00b6bc186b |
line wrap: on
line diff
--- 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);