Hi

Attached patch fixes coverity defect cid 1307838:
a vim_memset was clearing only the first byte of a struct
instead of the full struct. The defect was harmless
anyway since the initialization is not really needed.
It's only there to pacify compilers or static analyzers.

Regards
Dominique

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index bb07c8b..c3a01df 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -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;
 

Raspunde prin e-mail lui