[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-324-ga47170504

wwp at claws-mail.org wwp at claws-mail.org
Wed Oct 6 12:04:57 CEST 2021


The branch, gtk3 has been updated
       via  a471705042de8306ee3b8e12b1774747f4f9f1ac (commit)
      from  65b78c0c8a3dbae0cbb315a3dc75f83c0e3f16fa (commit)

Summary of changes:
 src/addressbook.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)


- Log -----------------------------------------------------------------
commit a471705042de8306ee3b8e12b1774747f4f9f1ac
Author: wwp <subscript at free.fr>
Date:   Wed Oct 6 12:04:33 2021 +0200

    Fix CID 1491290: dereference before null check.

diff --git a/src/addressbook.c b/src/addressbook.c
index d7ea12425..af091651e 100644
--- a/src/addressbook.c
+++ b/src/addressbook.c
@@ -3636,10 +3636,12 @@ gchar *addressbook_set_col_name_guard(gchar *value)
 {
 	gchar *ret = "<not set>";
 	gchar *tmp = g_strdup(value);
-	g_strstrip(tmp);
-	if (tmp !=NULL && *tmp != '\0')
-		ret = value;
-	g_free(tmp);
+	if (tmp) {
+		g_strstrip(tmp);
+		if (*tmp != '\0')
+			ret = value;
+		g_free(tmp);
+	}
 	return ret;
 }
 

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list