[Commits] [SCM] claws branch, master, updated. 3.11.1-36-g572802d

mones at claws-mail.org mones at claws-mail.org
Thu Dec 4 16:05:35 CET 2014


The branch, master has been updated
       via  572802d05824402bdb55ebd149f4e2d21d8230f7 (commit)
      from  a8df3ae48ad5732018934b378abb11a022735c5e (commit)

Summary of changes:
 src/addr_compl.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit 572802d05824402bdb55ebd149f4e2d21d8230f7
Author: Ricardo Mones <ricardo at mones.org>
Date:   Thu Dec 4 16:02:57 2014 +0100

    Fix crash opening folder (Debian bug #771737)
    
    See https://bugs.debian.org/771737 for details.

diff --git a/src/addr_compl.c b/src/addr_compl.c
index c6a1795..4ca55d5 100644
--- a/src/addr_compl.c
+++ b/src/addr_compl.c
@@ -183,7 +183,7 @@ static gint addr_completion_func(const gchar *needle, const gchar *haystack,
  */
 static gint weight_addr_match(const address_entry* addr)
 {
-	gint	n_weight = strlen(addr->name);
+	gint	n_weight = addr->name ? strlen(addr->name): 0;
 	gint	a_weight = addr->address ? strlen(addr->address) : n_weight;
 	gchar* 	match = NULL;
 

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list