aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-10-21 23:13:19 +0200
committerJustin M. Keyes <justinkz@gmail.com>2018-10-21 23:25:02 +0200
commit11ae6f418d6c8b62ea328e90a0ada3aff1ab9979 (patch)
tree59350b8f5cc04debb154711181138880338a42d8
parent902ca26856b54125ca773da753b1ea361f064f09 (diff)
downloadrneovim-11ae6f418d6c8b62ea328e90a0ada3aff1ab9979.tar.gz
rneovim-11ae6f418d6c8b62ea328e90a0ada3aff1ab9979.tar.bz2
rneovim-11ae6f418d6c8b62ea328e90a0ada3aff1ab9979.zip
fix warning: null arg passed to 'nonnull' param
Found by clang scan-build 5.0
-rw-r--r--src/nvim/quickfix.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c
index 89e0f40f4e..51a7dd670f 100644
--- a/src/nvim/quickfix.c
+++ b/src/nvim/quickfix.c
@@ -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,