forked from aniani/vim
patch 7.4.878
Problem: Coverity error for clearing only one byte of struct. Solution: Clear the whole struct. (Dominique Pelle)
This commit is contained in:
@@ -871,7 +871,7 @@ do_cmdline(cmdline, fgetline, cookie, flags)
|
||||
if (flags & DOCMD_EXCRESET)
|
||||
save_dbg_stuff(&debug_saved);
|
||||
else
|
||||
vim_memset(&debug_saved, 0, 1);
|
||||
vim_memset(&debug_saved, 0, sizeof(debug_saved));
|
||||
|
||||
initial_trylevel = trylevel;
|
||||
|
||||
|
@@ -741,6 +741,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
878,
|
||||
/**/
|
||||
877,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user