mirror of
https://github.com/neovim/neovim.git
synced 2026-06-29 06:30:32 +00:00
Merge pull request #20710 from neovim/backport-20709-to-release-0.8
[Backport release-0.8] fix(qflist): avoid read of uninitialized memory
This commit is contained in:
@@ -1058,6 +1058,7 @@ static int qf_init_ext(qf_info_T *qi, int qf_idx, const char *restrict efile, bu
|
||||
{
|
||||
qfstate_T state = { 0 };
|
||||
qffields_T fields = { 0 };
|
||||
qfline_T *old_last = NULL;
|
||||
static efm_T *fmt_first = NULL;
|
||||
static char *last_efm = NULL;
|
||||
int retval = -1; // default: return error flag
|
||||
@@ -1071,7 +1072,6 @@ static int qf_init_ext(qf_info_T *qi, int qf_idx, const char *restrict efile, bu
|
||||
}
|
||||
|
||||
qf_list_T *qfl;
|
||||
qfline_T *old_last = NULL;
|
||||
bool adding = false;
|
||||
if (newlist || qf_idx == qi->qf_listcount) {
|
||||
// make place for a new list
|
||||
|
||||
Reference in New Issue
Block a user