quickfix: fix pvs/v547 error

This commit is contained in:
Jan Edmund Lazo
2019-11-02 14:26:31 -04:00
parent 4a5adae950
commit 6c5772f7da

View File

@ -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;
}