From 15867d62e7ce691cb0ba9bee6f0b21c84c309311 Mon Sep 17 00:00:00 2001 From: ailin-nemui Date: Tue, 27 Aug 2019 15:12:04 +0200 Subject: [PATCH] Merge pull request #1114 from ailin-nemui/startup-crash fix crash on startup when resizing before active_win (cherry picked from commit 570d6714ec3f9a55940eaf953dc7914c2534c3e2) --- src/fe-text/mainwindows.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fe-text/mainwindows.c b/src/fe-text/mainwindows.c index 997cdd22..b8e10cdc 100644 --- a/src/fe-text/mainwindows.c +++ b/src/fe-text/mainwindows.c @@ -829,7 +829,7 @@ void mainwindows_resize(int width, int height) } /* if we lost our active mainwin, get a new one */ - if (active_mainwin == NULL && !quitting) { + if (active_mainwin == NULL && active_win != NULL && !quitting) { active_mainwin = WINDOW_MAIN(active_win); window_set_active(active_mainwin->active); }