0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -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

@@ -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);