diff src/quickfix.c @ 6081:16cfdf28be40 v7.4.379

updated for version 7.4.379 Problem: Accessing freed memory after using setqflist(list, 'r'). (Lcd) Solution: Reset qf_index.
author Bram Moolenaar <bram@vim.org>
date Wed, 23 Jul 2014 16:33:07 +0200
parents 75ae211df37d
children 7e4c22ecc679
line wrap: on
line diff
--- a/src/quickfix.c
+++ b/src/quickfix.c
@@ -2173,6 +2173,7 @@ qf_free(qi, idx)
     }
     vim_free(qi->qf_lists[idx].qf_title);
     qi->qf_lists[idx].qf_title = NULL;
+    qi->qf_lists[idx].qf_index = 0;
 }
 
 /*