From 2e8c3085e8c05d396c723550f9fc10e2db7fb28c Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Tue, 7 May 2002 05:37:04 +0000 Subject: [PATCH] * hotlist.c (hotlist_button_callback): Don't process B_REMOVE for VFS list - it would crash. From Andrey Panov --- src/ChangeLog | 6 ++++++ src/hotlist.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index f90e513ed..5f8c9b491 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2002-05-07 Pavel Roskin + + * hotlist.c (hotlist_button_callback): Don't process B_REMOVE + for VFS list - it would crash. + From Andrey Panov + 2002-04-19 Andrew V. Samoilov * main.c [!WITH_MCFS] (PanelMenu): Eliminate mcfs related entry. diff --git a/src/hotlist.c b/src/hotlist.c index 731f3d64c..238b7f5ec 100644 --- a/src/hotlist.c +++ b/src/hotlist.c @@ -320,7 +320,7 @@ static int hotlist_button_callback (int action, void *data) break; } case B_REMOVE: - if (l_hotlist->current) + if (l_hotlist->current && l_hotlist->current->data) remove_from_hotlist (l_hotlist->current->data); return 0; break;