From fd3c9551a84a3a9d74dc00c0e04e7ffcc498f8a8 Mon Sep 17 00:00:00 2001 From: Wang Xin Date: Tue, 12 Jun 2007 06:53:45 +0000 Subject: Fixes #444248. 2007-06-12 Wang Xin Fixes #444248. * addressbook/gui/widgets/e-minicard.c svn path=/trunk/; revision=33667 --- addressbook/gui/widgets/e-minicard.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'addressbook/gui/widgets') diff --git a/addressbook/gui/widgets/e-minicard.c b/addressbook/gui/widgets/e-minicard.c index 58897f3932..986dabc992 100644 --- a/addressbook/gui/widgets/e-minicard.c +++ b/addressbook/gui/widgets/e-minicard.c @@ -846,8 +846,13 @@ add_email_field (EMinicard *e_minicard, GList *email_list, gdouble left_width, i group = GNOME_CANVAS_GROUP( e_minicard ); for (l=email_list, le=emails; l!=NULL && count < limit && le!=NULL; l = l->next, le=le->next) { + gchar *tmp; - name = g_strdup_printf("%s:", get_email_location ((EVCardAttribute *) l->data)); + tmp = get_email_location ((EVCardAttribute *) l->data); + if (tmp) + name = g_strdup_printf("%s:", tmp); + else + name = g_strdup_printf(""); string = e_text_to_html (le->data, 0); new_item = e_minicard_label_new(group); -- cgit