[Commits] [SCM] claws branch, master, updated. 3.18.0-260-g8f03bca61

wwp at claws-mail.org wwp at claws-mail.org
Wed Oct 6 09:54:25 CEST 2021


The branch, master has been updated
       via  8f03bca61aca398d2fb3733bde7c17990aab174e (commit)
      from  bac407684aa94e3d41464ceb0596f41efc0b8440 (commit)

Summary of changes:
 src/addrcustomattr.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit 8f03bca61aca398d2fb3733bde7c17990aab174e
Author: wwp <subscript at free.fr>
Date:   Wed Oct 6 09:53:47 2021 +0200

    Fix CID 1491379: dereference before null check.

diff --git a/src/addrcustomattr.c b/src/addrcustomattr.c
index a28e8c5cc..1293db275 100644
--- a/src/addrcustomattr.c
+++ b/src/addrcustomattr.c
@@ -363,7 +363,8 @@ static void custom_attr_window_add_attr(void)
 {
 	gchar *new_attr = gtk_editable_get_chars(GTK_EDITABLE(custom_attr_window.add_entry),
 								0, -1);
-	g_strstrip(new_attr);
+	if (new_attr)
+		g_strstrip(new_attr);
 	if (new_attr && *new_attr) {
 		GtkListStore *list_store = GTK_LIST_STORE(gtk_tree_view_get_model
 						(GTK_TREE_VIEW(custom_attr_window.attr_list)));

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list