commit 6b6304293f8fd3ff967c28a82fa63bcb7240d46a from: Omar Polo date: Mon Feb 05 18:31:25 2024 UTC guard against wprintw(window, "%.*s", 0, NULL) even if textlen is zero, it still complains in syslog that the string passed is NULL (which kind of makes sense actually.) commit - 4655add68bea2925dae643694004d6a3ac73c5d8 commit + 6b6304293f8fd3ff967c28a82fa63bcb7240d46a blob - 55e20314797f9773fe0430a7448c59bdf1374329 blob + 9769b1d327322319650680449f46dc3aba011f38 --- ui.c +++ ui.c @@ -575,7 +575,8 @@ print_vline(int off, int width, WINDOW *window, struct wattr_off(window, f->prefix, NULL); wattr_on(window, f->text, NULL); - wprintw(window, "%.*s", textlen, text); + if (text) + wprintw(window, "%.*s", textlen, text); print_vline_descr(width, window, vl); wattr_off(window, f->text, NULL);