quickfix: fix pvs/v547 warning

This commit is contained in:
Jan Edmund Lazo 2019-09-08 12:17:02 -04:00
parent 7bb858c39c
commit 4a6ab3494a
No known key found for this signature in database
GPG Key ID: 64915E6E9F735B15

View File

@ -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);
}
qi->qf_lists[qf_idx].qf_ctx = ctx;
return OK;