From f3eb475d586bc226f4cd3d82547254273e106d7c Mon Sep 17 00:00:00 2001 From: Peter Williams Date: Fri, 18 Aug 2000 17:28:36 +0000 Subject: Fix output for when the name is empty svn path=/trunk/; revision=4873 --- camel/ChangeLog | 5 +++++ camel/camel-internet-address.c | 2 ++ 2 files changed, 7 insertions(+) (limited to 'camel') diff --git a/camel/ChangeLog b/camel/ChangeLog index 17bccfc015..09bfcac267 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,8 @@ +2000-08-18 Peter Williams + + * camel-internet-address.c (internet_encode): If the name is "" we + weren't outputting anything; output the address at least. + 2000-08-16 Peter Williams * camel-internet-address.c (internet_encode): Fix a leak when diff --git a/camel/camel-internet-address.c b/camel/camel-internet-address.c index 98b78dfdf9..65b7e1dfaf 100644 --- a/camel/camel-internet-address.c +++ b/camel/camel-internet-address.c @@ -119,6 +119,8 @@ static char * internet_encode (CamelAddress *a) if (name) { if (*name) g_string_sprintfa(out, "%s <%s>", name, addr->address); + else if (addr->address) + g_string_sprintfa (out, "%s", addr->address); g_free(name); } else g_string_sprintfa(out, "%s", addr->address); -- cgit