commit | 4f1b083be43f351bc107541e7b0c9655a5d2c0bb | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Mon Aug 29 20:45:16 2022 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Mon Aug 29 20:45:16 2022 +0100 |
tree | dc39650176462f3bcd38f7d789d3f8c6b22c3dd0 | |
parent | 37fef16c225eabed28a3c7a0542d2eeef30d812b [diff] [blame] |
patch 9.0.0322: crash when no errors and 'quickfixtextfunc' is set Problem: Crash when no errors and 'quickfixtextfunc' is set. Solution: Do not handle errors if there aren't any.
diff --git a/src/quickfix.c b/src/quickfix.c index 78f6880..ab288e0 100644 --- a/src/quickfix.c +++ b/src/quickfix.c
@@ -4761,7 +4761,7 @@ } // 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;