commit c7ab5157ebc7e7d502e0970770a7e7be48e61ea2 Hiltjo Posthuma <hiltjo@codemadness.org> 2018-12-25 19:33:21 +0100 ui_txt: check for curentry is NULL like ui_ti This can happen if SIGWINCH is signaled before a connection is made, reproducable with: st -e sacc bitreich.org.
ui_txt.c | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/ui_txt.c b/ui_txt.c index 3b9d964..0f5ea24 100644 --- a/ui_txt.c +++ b/ui_txt.c @@ -331,6 +331,10 @@ void uisigwinch(int signal) { uisetup(); + + if (!curentry) + return; + putchar('\n'); uidisplay(curentry); printstatus(curentry, cmd);