diff src/ex_docmd.c @ 7133:48ce650e8a27 v7.4.878

commit https://github.com/vim/vim/commit/69b67f7e774dc212e8c97495ee81c601b8a89ac2 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Sep 25 16:59:47 2015 +0200 patch 7.4.878 Problem: Coverity error for clearing only one byte of struct. Solution: Clear the whole struct. (Dominique Pelle)
author Christian Brabandt <cb@256bit.org>
date Fri, 25 Sep 2015 17:00:05 +0200
parents fa95595fbc52
children 0f2807c05687
line wrap: on
line diff
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -871,7 +871,7 @@ do_cmdline(cmdline, fgetline, cookie, fl
     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;