mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -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:
@@ -2308,6 +2308,7 @@ channel_exe_cmd(channel_T *channel, ch_part_T part, typval_T *argv)
|
|||||||
exarg_T ea;
|
exarg_T ea;
|
||||||
|
|
||||||
ch_log(channel, "Executing normal command '%s'", (char *)arg);
|
ch_log(channel, "Executing normal command '%s'", (char *)arg);
|
||||||
|
vim_memset(&ea, 0, sizeof(ea));
|
||||||
ea.arg = arg;
|
ea.arg = arg;
|
||||||
ea.addr_count = 0;
|
ea.addr_count = 0;
|
||||||
ea.forceit = TRUE; /* no mapping */
|
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;
|
exarg_T ea;
|
||||||
|
|
||||||
ch_log(channel, "redraw");
|
ch_log(channel, "redraw");
|
||||||
|
vim_memset(&ea, 0, sizeof(ea));
|
||||||
ea.forceit = *arg != NUL;
|
ea.forceit = *arg != NUL;
|
||||||
ex_redraw(&ea);
|
ex_redraw(&ea);
|
||||||
showruler(FALSE);
|
showruler(FALSE);
|
||||||
|
@@ -1190,9 +1190,9 @@ dialog_changed(
|
|||||||
else
|
else
|
||||||
ret = vim_dialog_yesnocancel(VIM_QUESTION, NULL, buff, 1);
|
ret = vim_dialog_yesnocancel(VIM_QUESTION, NULL, buff, 1);
|
||||||
|
|
||||||
/* Init ea pseudo-structure, this is needed for the check_overwrite()
|
// Init ea pseudo-structure, this is needed for the check_overwrite()
|
||||||
* function. */
|
// function.
|
||||||
ea.append = ea.forceit = FALSE;
|
vim_memset(&ea, 0, sizeof(ea));
|
||||||
|
|
||||||
if (ret == VIM_YES)
|
if (ret == VIM_YES)
|
||||||
{
|
{
|
||||||
|
@@ -5809,6 +5809,7 @@ vgr_jump_to_match(
|
|||||||
{
|
{
|
||||||
exarg_T ea;
|
exarg_T ea;
|
||||||
|
|
||||||
|
vim_memset(&ea, 0, sizeof(ea));
|
||||||
ea.arg = target_dir;
|
ea.arg = target_dir;
|
||||||
ea.cmdidx = CMD_lcd;
|
ea.cmdidx = CMD_lcd;
|
||||||
ex_cd(&ea);
|
ex_cd(&ea);
|
||||||
@@ -6109,6 +6110,7 @@ restore_start_dir(char_u *dirname_start)
|
|||||||
// appropriate ex command and executing it.
|
// appropriate ex command and executing it.
|
||||||
exarg_T ea;
|
exarg_T ea;
|
||||||
|
|
||||||
|
vim_memset(&ea, 0, sizeof(ea));
|
||||||
ea.arg = dirname_start;
|
ea.arg = dirname_start;
|
||||||
ea.cmdidx = (curwin->w_localdir == NULL) ? CMD_cd : CMD_lcd;
|
ea.cmdidx = (curwin->w_localdir == NULL) ? CMD_cd : CMD_lcd;
|
||||||
ex_cd(&ea);
|
ex_cd(&ea);
|
||||||
|
@@ -767,6 +767,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1312,
|
||||||
/**/
|
/**/
|
||||||
1311,
|
1311,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user