Skip to content

Commit d6b01a2

Browse files
committed
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.
1 parent 0366c01 commit d6b01a2

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/quickfix.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6350,7 +6350,7 @@ ex_cexpr(exarg_T *eap)
63506350
curbuf->b_fname, TRUE, curbuf);
63516351
if (res > 0 && (eap->cmdidx == CMD_cexpr
63526352
|| eap->cmdidx == CMD_lexpr)
6353-
&& qi == ll_get_or_alloc_list(curwin))
6353+
&& qi == GET_LOC_LIST(curwin))
63546354
// Jump to the first error if autocmds didn't free the list.
63556355
qf_jump(qi, 0, 0, eap->forceit);
63566356
}

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,8 @@ static char *(features[]) =
761761

762762
static int included_patches[] =
763763
{ /* Add new patch number below this line */
764+
/**/
765+
74,
764766
/**/
765767
73,
766768
/**/

0 commit comments

Comments
 (0)