comparison src/ex_docmd.c @ 23742:1f24fcf5945a v8.2.2412

patch 8.2.2412: not all fields in "cstack" are initialized Commit: https://github.com/vim/vim/commit/ce0370d9e67df80c62ff033aa8ca2dbe86841de9 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jan 26 19:32:53 2021 +0100 patch 8.2.2412: not all fields in "cstack" are initialized Problem: Not all fields in "cstack" are initialized which might cause a crash. Solution: Use CLEAR_FIELD().
author Bram Moolenaar <Bram@vim.org>
date Tue, 26 Jan 2021 19:45:06 +0100
parents e3720756acdc
children 262ab14b27db
comparison
equal deleted inserted replaced
23741:2f521411e152 23742:1f24fcf5945a
694 return FAIL; 694 return FAIL;
695 } 695 }
696 ++call_depth; 696 ++call_depth;
697 697
698 #ifdef FEAT_EVAL 698 #ifdef FEAT_EVAL
699 CLEAR_FIELD(cstack);
699 cstack.cs_idx = -1; 700 cstack.cs_idx = -1;
700 cstack.cs_looplevel = 0;
701 cstack.cs_trylevel = 0;
702 cstack.cs_emsg_silent_list = NULL;
703 cstack.cs_lflags = 0;
704 ga_init2(&lines_ga, (int)sizeof(wcmd_T), 10); 701 ga_init2(&lines_ga, (int)sizeof(wcmd_T), 10);
705 702
706 real_cookie = getline_cookie(fgetline, cookie); 703 real_cookie = getline_cookie(fgetline, cookie);
707 704
708 // Inside a function use a higher nesting level. 705 // Inside a function use a higher nesting level.