diff options
author | Bram Moolenaar <Bram@vim.org> | 2015-09-25 16:59:47 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2015-09-25 16:59:47 +0200 |
commit | 69b67f7e774dc212e8c97495ee81c601b8a89ac2 (patch) | |
tree | a520637d16a16d39a2e5d638604bfb30932facb4 /src/ex_docmd.c | |
parent | 4d0c7bc74ac6fad5cb599dc3ade6996e848d83b6 (diff) | |
download | vim-git-69b67f7e774dc212e8c97495ee81c601b8a89ac2.tar.gz |
patch 7.4.878v7.4.878
Problem: Coverity error for clearing only one byte of struct.
Solution: Clear the whole struct. (Dominique Pelle)
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r-- | src/ex_docmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index bb07c8bf4..c3a01df9f 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; |