aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/quickfix.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/quickfix.c')
-rw-r--r--src/nvim/quickfix.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c
index d5797e87e5..bdfaa11935 100644
--- a/src/nvim/quickfix.c
+++ b/src/nvim/quickfix.c
@@ -3153,11 +3153,7 @@ static void qf_list_entry(qfline_T *qfp, int qf_idx, bool cursel)
if (len > IOSIZE) {
tbuf = xmalloc(len);
- if (tbuf != NULL) {
- tbuflen = len;
- } else {
- tbuf = IObuff;
- }
+ tbuflen = len;
}
// Remove newlines and leading whitespace from the text. For an