From 53ed192b3c4a014c6bfe19a99623f5a2761a38d3 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 5 Sep 2006 13:37:47 +0000 Subject: updated for version 7.0-086 --- src/quickfix.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/quickfix.c') diff --git a/src/quickfix.c b/src/quickfix.c index 2e8737343..6c102d953 100644 --- a/src/quickfix.c +++ b/src/quickfix.c @@ -3426,8 +3426,10 @@ get_errorlist(wp, list) || dict_add_nr_str(dict, "col", (long)qfp->qf_col, NULL) == FAIL || dict_add_nr_str(dict, "vcol", (long)qfp->qf_viscol, NULL) == FAIL || dict_add_nr_str(dict, "nr", (long)qfp->qf_nr, NULL) == FAIL - || dict_add_nr_str(dict, "pattern", 0L, qfp->qf_pattern) == FAIL - || dict_add_nr_str(dict, "text", 0L, qfp->qf_text) == FAIL + || dict_add_nr_str(dict, "pattern", 0L, + qfp->qf_pattern == NULL ? (char_u *)"" : qfp->qf_pattern) == FAIL + || dict_add_nr_str(dict, "text", 0L, + qfp->qf_text == NULL ? (char_u *)"" : qfp->qf_text) == FAIL || dict_add_nr_str(dict, "type", 0L, buf) == FAIL || dict_add_nr_str(dict, "valid", (long)qfp->qf_valid, NULL) == FAIL) return FAIL; -- cgit v1.2.1