aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/ename
diff options
context:
space:
mode:
Diffstat (limited to 'e-util/ename')
-rw-r--r--e-util/ename/e-address-western.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/e-util/ename/e-address-western.c b/e-util/ename/e-address-western.c
index f2200a9dba..9d325f1384 100644
--- a/e-util/ename/e-address-western.c
+++ b/e-util/ename/e-address-western.c
@@ -399,15 +399,13 @@ e_address_western_parse (const gchar *in_address)
&eaw->extended );
}
else {
- if (eaw->extended == NULL) {
- eaw->extended = g_strdup (lines[cntr]);
- }
- else {
- gchar *temp;
- temp = g_strconcat (eaw->extended, "\n", lines[cntr], NULL);
- g_free (eaw->extended);
- eaw->extended = temp;
- }
+ gchar *temp;
+ temp = g_strdup_printf (
+ "%s\n%s",
+ eaw->extended ? eaw->extended: "",
+ lines[cntr]);
+ g_free (eaw->extended);
+ eaw->extended = temp;
}
}
}