diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-09-10 20:15:44 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-10 20:15:44 -0700 |
commit | b735583377bf5c15a7bd5e910e4ae9fa833c1e42 (patch) | |
tree | c2a33c7597b8122aeae26b82fa759d11efa3aa84 /src/nvim/quickfix.c | |
parent | 7bb858c39cac9b9af321fc90470c91d2e31ed96e (diff) | |
parent | 2ed7cda8cd0fe7dd29fa7879a7bf6df9256d38cd (diff) | |
download | rneovim-b735583377bf5c15a7bd5e910e4ae9fa833c1e42.tar.gz rneovim-b735583377bf5c15a7bd5e910e4ae9fa833c1e42.tar.bz2 rneovim-b735583377bf5c15a7bd5e910e4ae9fa833c1e42.zip |
Merge #10969 from janlazo/clang_pvs
Diffstat (limited to 'src/nvim/quickfix.c')
-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; |