]> granicus.if.org Git - vim/commitdiff
patch 8.1.0074: crash when running quickfix tests v8.1.0074
authorBram Moolenaar <Bram@vim.org>
Mon, 18 Jun 2018 19:53:28 +0000 (21:53 +0200)
committerBram Moolenaar <Bram@vim.org>
Mon, 18 Jun 2018 19:53:28 +0000 (21:53 +0200)
Problem:    Crash when running quickfix tests.
Solution:   Do not alloc a new location list when checking for the reference
            to be still valid.

src/quickfix.c
src/version.c

index fb1cb4e8688f5df253f6aec790f06c82f342524e..d541aba54db517756b7d69f833863a755396af86 100644 (file)
@@ -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);
        }
index 36c57e249ebbba084b0f1f57e5dfb89c6089fc7c..09325fbd4e1807262214b5da7df68fa4a0f2d9d4 100644 (file)
@@ -761,6 +761,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    74,
 /**/
     73,
 /**/