diff options
author | Peter Williams <peterw@src.gnome.org> | 2000-08-17 03:24:30 +0800 |
---|---|---|
committer | Peter Williams <peterw@src.gnome.org> | 2000-08-17 03:24:30 +0800 |
commit | cb09690008c468d5bb8fb9b27b761dccf126cfaa (patch) | |
tree | 3e65bdb42d13c9589b28dabd136f6bcdfe892f71 /camel/camel-internet-address.c | |
parent | 224c97090305d7fbe20d76d50001118a4ade959b (diff) | |
download | gsoc2013-evolution-cb09690008c468d5bb8fb9b27b761dccf126cfaa.tar.gz gsoc2013-evolution-cb09690008c468d5bb8fb9b27b761dccf126cfaa.tar.zst gsoc2013-evolution-cb09690008c468d5bb8fb9b27b761dccf126cfaa.zip |
More leak fixes
svn path=/trunk/; revision=4857
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); |