commit | 99234f29aa8767f2e71bb1f5db6ee0131bc8e64e | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Mon Feb 10 22:56:54 2020 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Mon Feb 10 22:56:54 2020 +0100 |
tree | 1deb5ccb1ead5ab96cda41e3585c186d4f1ea56c | |
parent | 408030e8d053fe1c871b2fc366363a30ed98c889 [diff] [blame] |
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 #5613)
diff --git a/src/quickfix.c b/src/quickfix.c index 868b5d9..00457e2 100644 --- a/src/quickfix.c +++ b/src/quickfix.c
@@ -4520,7 +4520,7 @@ *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;