diff options
Diffstat (limited to 'addressbook/gui/widgets')
-rw-r--r-- | addressbook/gui/widgets/e-minicard.c | 7 |
1 files changed, 6 insertions, 1 deletions
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); |