[Commits] [SCM] claws branch, master, updated. 3.18.0-211-g0da71bb6b

wwp at claws-mail.org wwp at claws-mail.org
Thu Sep 30 11:10:09 CEST 2021


The branch, master has been updated
       via  0da71bb6bac180dc81dd553156a02768b18a2cff (commit)
      from  bafa99458855388faed313cd875f19c90516e9f9 (commit)

Summary of changes:
 src/plugins/archive/libarchive_archive.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit 0da71bb6bac180dc81dd553156a02768b18a2cff
Author: wwp <subscript at free.fr>
Date:   Thu Sep 30 11:09:35 2021 +0200

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

diff --git a/src/plugins/archive/libarchive_archive.c b/src/plugins/archive/libarchive_archive.c
index c6366dde7..66ebc0326 100644
--- 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);

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list