diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-08-29 20:45:16 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-08-29 20:45:16 +0100 |
commit | 4f1b083be43f351bc107541e7b0c9655a5d2c0bb (patch) | |
tree | dc39650176462f3bcd38f7d789d3f8c6b22c3dd0 /src/quickfix.c | |
parent | 37fef16c225eabed28a3c7a0542d2eeef30d812b (diff) | |
download | vim-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.c | 2 |
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; |