clang/"null passed to nonnull arg": ex_history

This commit is contained in:
Justin M. Keyes 2019-01-13 17:02:37 +01:00
parent 712cf9d8f3
commit fb7c48f2f3

View File

@ -5933,6 +5933,7 @@ void ex_history(exarg_T *eap)
for (; !got_int && histype1 <= histype2; ++histype1) { for (; !got_int && histype1 <= histype2; ++histype1) {
STRCPY(IObuff, "\n # "); STRCPY(IObuff, "\n # ");
assert(history_names[histype1] != NULL);
STRCAT(STRCAT(IObuff, history_names[histype1]), " history"); STRCAT(STRCAT(IObuff, history_names[histype1]), " history");
MSG_PUTS_TITLE(IObuff); MSG_PUTS_TITLE(IObuff);
idx = hisidx[histype1]; idx = hisidx[histype1];