summaryrefslogtreecommitdiff
path: root/src/quickfix.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-06-18 21:53:28 +0200
committerBram Moolenaar <Bram@vim.org>2018-06-18 21:53:28 +0200
commitd6b01a2d3884ee0abe10aad161f584889a496e3f (patch)
tree387df7cf86427cb7c43136f726a703670c6f996f /src/quickfix.c
parent0366c0161e988e32420d2f37111a60129684905b (diff)
downloadvim-git-d6b01a2d3884ee0abe10aad161f584889a496e3f.tar.gz
patch 8.1.0074: crash when running quickfix testsv8.1.0074
Problem: Crash when running quickfix tests. Solution: Do not alloc a new location list when checking for the reference to be still valid.
Diffstat (limited to 'src/quickfix.c')
-rw-r--r--src/quickfix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quickfix.c b/src/quickfix.c
index fb1cb4e86..d541aba54 100644
--- a/src/quickfix.c
+++ b/src/quickfix.c
@@ -6350,7 +6350,7 @@ ex_cexpr(exarg_T *eap)
curbuf->b_fname, TRUE, curbuf);
if (res > 0 && (eap->cmdidx == CMD_cexpr
|| eap->cmdidx == CMD_lexpr)
- && qi == ll_get_or_alloc_list(curwin))
+ && qi == GET_LOC_LIST(curwin))
// Jump to the first error if autocmds didn't free the list.
qf_jump(qi, 0, 0, eap->forceit);
}