aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/quickfix.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-05-09 20:43:04 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-05-09 23:16:17 -0400
commitc82c5d757092e153c3c39a6fca2ad525208d1504 (patch)
treeca8365cf34b5c166b221cffe02c36a6895ddae12 /src/nvim/quickfix.c
parent92f39762af2c31f7710b61b14de81fd088cd4ddc (diff)
downloadrneovim-c82c5d757092e153c3c39a6fca2ad525208d1504.tar.gz
rneovim-c82c5d757092e153c3c39a6fca2ad525208d1504.tar.bz2
rneovim-c82c5d757092e153c3c39a6fca2ad525208d1504.zip
vim-patch:8.1.1312: Coverity warning for using uninitialized variable
Problem: Coverity warning for using uninitialized variable. Solution: Clear exarg_T. https://github.com/vim/vim/commit/4ca41534b726c4116d2e430e877e34146b4d4831
Diffstat (limited to 'src/nvim/quickfix.c')
-rw-r--r--src/nvim/quickfix.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c
index 786e40254d..29b3d19f52 100644
--- a/src/nvim/quickfix.c
+++ b/src/nvim/quickfix.c
@@ -4260,10 +4260,10 @@ static void restore_start_dir(char_u *dirname_start)
if (STRCMP(dirname_start, dirname_now) != 0) {
/* If the directory has changed, change it back by building up an
* appropriate ex command and executing it. */
- exarg_T ea;
-
- ea.arg = dirname_start;
- ea.cmdidx = (curwin->w_localdir == NULL) ? CMD_cd : CMD_lcd;
+ exarg_T ea = {
+ .arg = dirname_start,
+ .cmdidx = (curwin->w_localdir == NULL) ? CMD_cd : CMD_lcd,
+ };
ex_cd(&ea);
}
xfree(dirname_now);