From 712cf9d8f3623faa2219b53648ccb5c2a098b963 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Sun, 13 Jan 2019 16:55:14 +0100 Subject: [PATCH] clang/"null passed to nonnull arg": cs_manage_matches --- src/nvim/if_cscope.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/nvim/if_cscope.c b/src/nvim/if_cscope.c index ab33cf7863..625d6baa17 100644 --- a/src/nvim/if_cscope.c +++ b/src/nvim/if_cscope.c @@ -1371,6 +1371,8 @@ static char *cs_manage_matches(char **matches, char **contexts, next = 0; break; case Print: + assert(mp != NULL); + assert(cp != NULL); cs_print_tags_priv(mp, cp, cnt); break; default: // should not reach here