summaryrefslogtreecommitdiff
path: root/src/quickfix.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-08-29 20:45:16 +0100
committerBram Moolenaar <Bram@vim.org>2022-08-29 20:45:16 +0100
commit4f1b083be43f351bc107541e7b0c9655a5d2c0bb (patch)
treedc39650176462f3bcd38f7d789d3f8c6b22c3dd0 /src/quickfix.c
parent37fef16c225eabed28a3c7a0542d2eeef30d812b (diff)
downloadvim-git-9.0.0322.tar.gz
patch 9.0.0322: crash when no errors and 'quickfixtextfunc' is setv9.0.0322
Problem: Crash when no errors and 'quickfixtextfunc' is set. Solution: Do not handle errors if there aren't any.
Diffstat (limited to 'src/quickfix.c')
-rw-r--r--src/quickfix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quickfix.c b/src/quickfix.c
index 78f6880d8..ab288e0c4 100644
--- a/src/quickfix.c
+++ b/src/quickfix.c
@@ -4761,7 +4761,7 @@ qf_fill_buffer(qf_list_T *qfl, buf_T *buf, qfline_T *old_last, int qf_winid)
}
// Check if there is anything to display
- if (qfl != NULL)
+ if (qfl != NULL && qfl->qf_start != NULL)
{
char_u dirname[MAXPATHL];
int invalid_val = FALSE;