diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-11-03 05:13:52 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-03 05:13:52 +0900 |
commit | 75ad5587477b1fc90cb0c693794ee7053c3339c7 (patch) | |
tree | 7f6833fff12f8052c444db6b2e6ab6585f27e622 /src/nvim/quickfix.c | |
parent | 90981f5861e4c23c6a23a0082261b074ba48ea47 (diff) | |
parent | 1c43fb1d51cd76ccca142e73d72af56f6fb0461d (diff) | |
download | rneovim-75ad5587477b1fc90cb0c693794ee7053c3339c7.tar.gz rneovim-75ad5587477b1fc90cb0c693794ee7053c3339c7.tar.bz2 rneovim-75ad5587477b1fc90cb0c693794ee7053c3339c7.zip |
Merge #11324 from janlazo/vim-8.1.2235
vim-patch:8.1.{2235,2236}
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 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; } |