commit | 158a1b074828341767ad4ce912b346bf14189605 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Wed Jul 23 16:33:07 2014 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Wed Jul 23 16:33:07 2014 +0200 |
tree | be08e8275cf5711f3f9e11686584c53d95479a6a | |
parent | fb60409a3f25efedcf5611a64a80cb2fb660489f [diff] [blame] |
updated for version 7.4.379 Problem: Accessing freed memory after using setqflist(list, 'r'). (Lcd) Solution: Reset qf_index.
diff --git a/src/quickfix.c b/src/quickfix.c index fc3a144..c8954cc 100644 --- a/src/quickfix.c +++ b/src/quickfix.c
@@ -2173,6 +2173,7 @@ } vim_free(qi->qf_lists[idx].qf_title); qi->qf_lists[idx].qf_title = NULL; + qi->qf_lists[idx].qf_index = 0; } /*