mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
quickfix: fix pvs/v547 error
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user