diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-01-26 19:32:53 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-01-26 19:32:53 +0100 |
commit | ce0370d9e67df80c62ff033aa8ca2dbe86841de9 (patch) | |
tree | 9079b3afd591c0eda8d8302f1a3d36127e2193a3 | |
parent | 98989a00145cc4f5783bcc12a2968a2f716eabb9 (diff) | |
download | vim-git-8.2.2412.tar.gz |
patch 8.2.2412: not all fields in "cstack" are initializedv8.2.2412
Problem: Not all fields in "cstack" are initialized which might cause a
crash.
Solution: Use CLEAR_FIELD().
-rw-r--r-- | src/ex_docmd.c | 5 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 3dec65e88..8b9db6812 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -696,11 +696,8 @@ do_cmdline( ++call_depth; #ifdef FEAT_EVAL + CLEAR_FIELD(cstack); cstack.cs_idx = -1; - cstack.cs_looplevel = 0; - cstack.cs_trylevel = 0; - cstack.cs_emsg_silent_list = NULL; - cstack.cs_lflags = 0; ga_init2(&lines_ga, (int)sizeof(wcmd_T), 10); real_cookie = getline_cookie(fgetline, cookie); diff --git a/src/version.c b/src/version.c index 086d79f15..9a6763338 100644 --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2412, +/**/ 2411, /**/ 2410, |