[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-322-g1803265b1

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


The branch, gtk3 has been updated
       via  1803265b185cb02c3e6b57e569e4e7653c8541d9 (commit)
      from  4228ee62e4b793eb7ee536b8eb386a8b272af540 (commit)

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


- Log -----------------------------------------------------------------
commit 1803265b185cb02c3e6b57e569e4e7653c8541d9
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 d9933e52e..40d5ceb63 100644
--- a/src/addrcustomattr.c
+++ b/src/addrcustomattr.c
@@ -360,7 +360,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