summaryrefslogtreecommitdiff
path: root/src/quickfix.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-09-05 13:37:47 +0000
committerBram Moolenaar <Bram@vim.org>2006-09-05 13:37:47 +0000
commit53ed192b3c4a014c6bfe19a99623f5a2761a38d3 (patch)
tree9478d4811c7fe6bd1c76715a3b55d9642dcee3a8 /src/quickfix.c
parent6abf17bc7e215650e87ca96216ac36683bc85b59 (diff)
downloadvim-git-53ed192b3c4a014c6bfe19a99623f5a2761a38d3.tar.gz
updated for version 7.0-086v7.0.086
Diffstat (limited to 'src/quickfix.c')
-rw-r--r--src/quickfix.c6
1 files changed, 4 insertions, 2 deletions
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;