talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 06019f2e459a6405fa4ab375d6a3260e23398472
parent 48010781a596ca1fd8acb1cbfbcf0cd56a98e866
Author: wwp <subscript@free.fr>
Date:   Thu, 30 Sep 2021 11:09:35 +0200

Fix CID 1492295: explicit null dereferenced (due to previous commit).

Diffstat:
Msrc/plugins/archive/libarchive_archive.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/plugins/archive/libarchive_archive.c b/src/plugins/archive/libarchive_archive.c @@ -100,8 +100,10 @@ void archive_free_archived_files() { GSList* l = NULL; for (l = msg_trash_list; l; l = g_slist_next(l)) { - gchar *name = folder_item_get_name(mt->item); + gchar *name; + mt = (MsgTrash *) l->data; + name = folder_item_get_name(mt->item); debug_print("Trashing messages in folder: %s\n", name); g_free(name);