comparison src/quickfix.c @ 14113:b75df03789f8 v8.1.0074

patch 8.1.0074: crash when running quickfix tests commit https://github.com/vim/vim/commit/d6b01a2d3884ee0abe10aad161f584889a496e3f Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jun 18 21:53:28 2018 +0200 patch 8.1.0074: crash when running quickfix tests Problem: Crash when running quickfix tests. Solution: Do not alloc a new location list when checking for the reference to be still valid.
author Christian Brabandt <cb@256bit.org>
date Mon, 18 Jun 2018 22:00:08 +0200
parents 678e326bf7eb
children ca6ccee4823f
comparison
equal deleted inserted replaced
14112:96654a031281 14113:b75df03789f8
6348 if (au_name != NULL) 6348 if (au_name != NULL)
6349 apply_autocmds(EVENT_QUICKFIXCMDPOST, au_name, 6349 apply_autocmds(EVENT_QUICKFIXCMDPOST, au_name,
6350 curbuf->b_fname, TRUE, curbuf); 6350 curbuf->b_fname, TRUE, curbuf);
6351 if (res > 0 && (eap->cmdidx == CMD_cexpr 6351 if (res > 0 && (eap->cmdidx == CMD_cexpr
6352 || eap->cmdidx == CMD_lexpr) 6352 || eap->cmdidx == CMD_lexpr)
6353 && qi == ll_get_or_alloc_list(curwin)) 6353 && qi == GET_LOC_LIST(curwin))
6354 // Jump to the first error if autocmds didn't free the list. 6354 // Jump to the first error if autocmds didn't free the list.
6355 qf_jump(qi, 0, 0, eap->forceit); 6355 qf_jump(qi, 0, 0, eap->forceit);
6356 } 6356 }
6357 else 6357 else
6358 EMSG(_("E777: String or List expected")); 6358 EMSG(_("E777: String or List expected"));