]> granicus.if.org Git - vim/commitdiff
patch 7.4.878 v7.4.878
authorBram Moolenaar <Bram@vim.org>
Fri, 25 Sep 2015 14:59:47 +0000 (16:59 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 25 Sep 2015 14:59:47 +0000 (16:59 +0200)
Problem:    Coverity error for clearing only one byte of struct.
Solution:   Clear the whole struct. (Dominique Pelle)

src/ex_docmd.c
src/version.c

index bb07c8bf45fa9e4b43519d995964c56603273d02..c3a01df9fb8b8fbf72fb8728e3e170c9c6e3210b 100644 (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;
 
index 1c9eeedeb81d907e6aa0b8575a7f39dc8d678c09..fadd0d489272f1514a3144854a90da633cdfd7f6 100644 (file)
@@ -741,6 +741,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    878,
 /**/
     877,
 /**/