tui_txt: check for curentry is NULL like ui_ti - sacc - sacc(omys), simple console gopher client (mirror) HTML git clone https://git.parazyd.org/sacc DIR Log DIR Files DIR Refs DIR LICENSE --- DIR commit c7ab5157ebc7e7d502e0970770a7e7be48e61ea2 DIR parent 10ed3e55246b65f39aa19f3c63bb0241c62d4f6c HTML Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Tue, 25 Dec 2018 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. Diffstat: M ui_txt.c | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) --- DIR diff --git a/ui_txt.c b/ui_txt.c t@@ -331,6 +331,10 @@ void uisigwinch(int signal) { uisetup(); + + if (!curentry) + return; + putchar('\n'); uidisplay(curentry); printstatus(curentry, cmd);