mirror of
https://github.com/neovim/neovim.git
synced 2025-09-15 07:48:18 +00:00
vim-patch:8.2.0241: crash when setting 'buftype' to "quickfix"
Problem: Crash when setting 'buftype' to "quickfix".
Solution: Check that error list is not NULL. (closes vim/vim#5613)
99234f29aa
This commit is contained in:
@@ -3845,7 +3845,7 @@ static void qf_fill_buffer(qf_list_T *qfl, buf_T *buf, qfline_T *old_last)
|
||||
*dirname = NUL;
|
||||
|
||||
// Add one line for each error
|
||||
if (old_last == NULL) {
|
||||
if (old_last == NULL || old_last->qf_next == NULL) {
|
||||
qfp = qfl->qf_start;
|
||||
lnum = 0;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user