1
0
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:
Bram Moolenaar
2015-09-25 16:59:47 +02:00
parent 4d0c7bc74a
commit 69b67f7e77
2 changed files with 3 additions and 1 deletions

View File

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

View File

@@ -741,6 +741,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
878,
/**/
877,
/**/