fix warning: null arg passed to 'nonnull' param

Found by clang scan-build 5.0
This commit is contained in:
Justin M. Keyes
2018-10-21 23:13:19 +02:00
parent 902ca26856
commit 11ae6f418d

View File

@@ -4492,6 +4492,7 @@ static int qf_set_properties(qf_info_T *qi, dict_T *what, int action,
}
if ((di = tv_dict_find(what, S_LEN("items"))) != NULL) {
if (di->di_tv.v_type == VAR_LIST) {
assert(qi->qf_lists[qf_idx].qf_title != NULL);
char_u *title_save = vim_strsave(qi->qf_lists[qf_idx].qf_title);
retval = qf_add_entries(qi, qf_idx, di->di_tv.vval.v_list,