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 | |
parent | 4d0c7bc74ac6fad5cb599dc3ade6996e848d83b6 (diff) |
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')
-rw-r--r-- | src/ex_docmd.c | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index bb07c8bf45..c3a01df9fb 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; diff --git a/src/version.c b/src/version.c index 1c9eeedeb8..fadd0d4892 100644 --- a/src/version.c +++ b/src/version.c @@ -742,6 +742,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 878, +/**/ 877, /**/ 876, |