From d462667ee643b81a76cff08c2f4aa3311e69d50f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sat, 16 Mar 2024 17:24:12 +0100 Subject: [PATCH] core: fix crash on /upgrade when hotlist contains buffers that are closed --- src/gui/gui-hotlist.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gui/gui-hotlist.c b/src/gui/gui-hotlist.c index 7c739cccc..585173fc3 100644 --- a/src/gui/gui-hotlist.c +++ b/src/gui/gui-hotlist.c @@ -549,6 +549,9 @@ gui_hotlist_resort () struct t_gui_hotlist *new_hotlist, *last_new_hotlist; struct t_gui_hotlist *ptr_hotlist, *element; + if (weechat_upgrading) + return; + /* copy and resort hotlist in new linked list */ new_hotlist = NULL; last_new_hotlist = NULL;