diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-09-08 12:17:02 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-09-10 21:54:04 -0400 |
commit | 4a6ab3494a93313841b7b701de4038519fabb0c9 (patch) | |
tree | ccd745c0bdf9bdcab957dc4472fb5dcdcaf80c7c /src | |
parent | 7bb858c39cac9b9af321fc90470c91d2e31ed96e (diff) | |
download | rneovim-4a6ab3494a93313841b7b701de4038519fabb0c9.tar.gz rneovim-4a6ab3494a93313841b7b701de4038519fabb0c9.tar.bz2 rneovim-4a6ab3494a93313841b7b701de4038519fabb0c9.zip |
quickfix: fix pvs/v547 warning
Diffstat (limited to 'src')
-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; |