diff options
-rw-r--r-- | src/nvim/quickfix.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c index e24ccc38b0..be6e48465f 100644 --- a/src/nvim/quickfix.c +++ b/src/nvim/quickfix.c @@ -5139,9 +5139,7 @@ static int qf_setprop_context(qf_info_T *qi, int qf_idx, dictitem_T *di) { tv_free(qi->qf_lists[qf_idx].qf_ctx); typval_T *ctx = xcalloc(1, sizeof(typval_T)); - if (ctx != NULL) { - tv_copy(&di->di_tv, ctx); - } + tv_copy(&di->di_tv, ctx); qi->qf_lists[qf_idx].qf_ctx = ctx; return OK; |