diff options
Diffstat (limited to 'camel/camel-internet-address.c')
-rw-r--r-- | camel/camel-internet-address.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/camel/camel-internet-address.c b/camel/camel-internet-address.c index 0e68f718c2..98b78dfdf9 100644 --- a/camel/camel-internet-address.c +++ b/camel/camel-internet-address.c @@ -116,8 +116,9 @@ static char * internet_encode (CamelAddress *a) if (i!=0) g_string_append(out, ", "); - if (name && *name) { - g_string_sprintfa(out, "%s <%s>", name, addr->address); + if (name) { + if (*name) + g_string_sprintfa(out, "%s <%s>", name, addr->address); g_free(name); } else g_string_sprintfa(out, "%s", addr->address); |