[Commits] [SCM] claws branch, master, updated. 3.12.0-35-gcf35c41
wwp at claws-mail.org
wwp at claws-mail.org
Thu Jul 30 10:13:14 CEST 2015
The branch, master has been updated
via cf35c411534a9b0b27040777628cd78a8aa1dd93 (commit)
from b499a35e93a8580816899b13f6ef76cb5062c741 (commit)
Summary of changes:
src/addr_compl.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
- Log -----------------------------------------------------------------
commit cf35c411534a9b0b27040777628cd78a8aa1dd93
Author: wwp <wwp at free.fr>
Date: Thu Jul 30 10:13:06 2015 +0200
Fix crash in address completion when matching group name.
diff --git a/src/addr_compl.c b/src/addr_compl.c
index c3ffefb..b3398f6 100644
--- a/src/addr_compl.c
+++ b/src/addr_compl.c
@@ -231,7 +231,14 @@ static gint addr_comparison_func(gconstpointer a, gconstpointer b)
return 1;
else {
cmp = strcmp(a_ref->name, b_ref->name);
- return cmp ? cmp : strcmp(a_ref->address, b_ref->address);
+ if (cmp)
+ return cmp;
+ else {
+ if (a_ref->address && b_ref->address)
+ return strcmp(a_ref->address, b_ref->address);
+ else
+ return -1;
+ }
}
}
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list