1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

core: fix crash on /upgrade when hotlist contains buffers that are closed

This commit is contained in:
Sébastien Helleu
2024-03-16 17:24:12 +01:00
parent 8eafc0624c
commit d462667ee6
+3
View File
@@ -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;