aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-01-13 17:03:55 +0100
committerJustin M. Keyes <justinkz@gmail.com>2019-01-13 17:03:55 +0100
commit94fc3e01828a4f021dcb2ce9a31edabf2770cec4 (patch)
tree85f6ddd3263b6d2273141ae1c58534ca3c22b392
parentfb7c48f2f3208b756b723e921b68e4a7bfa8f9f1 (diff)
downloadrneovim-94fc3e01828a4f021dcb2ce9a31edabf2770cec4.tar.gz
rneovim-94fc3e01828a4f021dcb2ce9a31edabf2770cec4.tar.bz2
rneovim-94fc3e01828a4f021dcb2ce9a31edabf2770cec4.zip
clang/"null passed to nonnull arg": shada.c
-rw-r--r--src/nvim/shada.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/shada.c b/src/nvim/shada.c
index 36570e0ded..8864301e4c 100644
--- a/src/nvim/shada.c
+++ b/src/nvim/shada.c
@@ -599,6 +599,7 @@ static inline void hmll_insert(HMLList *const hmll,
if (hmll_entry == hmll->first) {
hmll_entry = NULL;
}
+ assert(hmll->first != NULL);
hmll_remove(hmll, hmll->first);
}
HMLListEntry *target_entry;