diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-11-02 14:26:31 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-11-02 14:26:49 -0400 |
commit | 6c5772f7daf0017b0a3cc9e67055b084f2779ad7 (patch) | |
tree | c605fbcfe4bac0f6acfc50dcbd8b71de7fcf3d3e | |
parent | 4a5adae95084e2dbaea59f0cffb9087ec4a6415e (diff) | |
download | rneovim-6c5772f7daf0017b0a3cc9e67055b084f2779ad7.tar.gz rneovim-6c5772f7daf0017b0a3cc9e67055b084f2779ad7.tar.bz2 rneovim-6c5772f7daf0017b0a3cc9e67055b084f2779ad7.zip |
quickfix: fix pvs/v547 error
-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 4ca9ca2a3e..a9e0c22a76 100644 --- a/src/nvim/quickfix.c +++ b/src/nvim/quickfix.c @@ -1693,9 +1693,7 @@ static int copy_loclist(const qf_list_T *from_qfl, } if (from_qfl->qf_ctx != NULL) { to_qfl->qf_ctx = xcalloc(1, sizeof(*to_qfl->qf_ctx)); - if (to_qfl->qf_ctx != NULL) { - tv_copy(from_qfl->qf_ctx, to_qfl->qf_ctx); - } + tv_copy(from_qfl->qf_ctx, to_qfl->qf_ctx); } else { to_qfl->qf_ctx = NULL; } |