From fb7c48f2f3208b756b723e921b68e4a7bfa8f9f1 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Sun, 13 Jan 2019 17:02:37 +0100 Subject: [PATCH] clang/"null passed to nonnull arg": ex_history --- src/nvim/ex_getln.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c index 4ea25117d9..8be8d757c8 100644 --- a/src/nvim/ex_getln.c +++ b/src/nvim/ex_getln.c @@ -5933,6 +5933,7 @@ void ex_history(exarg_T *eap) for (; !got_int && histype1 <= histype2; ++histype1) { STRCPY(IObuff, "\n # "); + assert(history_names[histype1] != NULL); STRCAT(STRCAT(IObuff, history_names[histype1]), " history"); MSG_PUTS_TITLE(IObuff); idx = hisidx[histype1];