projects
/
claws.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8df3ae
)
Fix crash opening folder (Debian bug #771737)
author
Ricardo Mones
<ricardo@mones.org>
Thu, 4 Dec 2014 15:02:57 +0000
(16:02 +0100)
committer
Ricardo Mones
<ricardo@mones.org>
Thu, 4 Dec 2014 15:02:57 +0000
(16:02 +0100)
See https://bugs.debian.org/771737 for details.
src/addr_compl.c
patch
|
blob
|
history
diff --git
a/src/addr_compl.c
b/src/addr_compl.c
index c6a1795054fa729a1f0044a774ce17fa4d848bed..4ca55d573bf1774b22a753db2c8a8af7fc5759e6 100644
(file)
--- 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;