Problem: Coverity warning for using uninitialized variable.
Solution: Clear exarg_T.
exarg_T ea;
ch_log(channel, "Executing normal command '%s'", (char *)arg);
+ vim_memset(&ea, 0, sizeof(ea));
ea.arg = arg;
ea.addr_count = 0;
ea.forceit = TRUE; /* no mapping */
exarg_T ea;
ch_log(channel, "redraw");
+ vim_memset(&ea, 0, sizeof(ea));
ea.forceit = *arg != NUL;
ex_redraw(&ea);
showruler(FALSE);
else
ret = vim_dialog_yesnocancel(VIM_QUESTION, NULL, buff, 1);
- /* Init ea pseudo-structure, this is needed for the check_overwrite()
- * function. */
- ea.append = ea.forceit = FALSE;
+ // Init ea pseudo-structure, this is needed for the check_overwrite()
+ // function.
+ vim_memset(&ea, 0, sizeof(ea));
if (ret == VIM_YES)
{
{
exarg_T ea;
+ vim_memset(&ea, 0, sizeof(ea));
ea.arg = target_dir;
ea.cmdidx = CMD_lcd;
ex_cd(&ea);
// 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);
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1312,
/**/
1311,
/**/