aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/widgets
diff options
context:
space:
mode:
authorsimon.zheng <simon.zheng@sun.com>2007-04-09 10:35:11 +0800
committerSimon Zheng <simonz@src.gnome.org>2007-04-09 10:35:11 +0800
commit96e5dc161fc6bb7ac376988c570d393a1d294e9d (patch)
tree40a6eac5710c22e1eae0f629fa2db78a75e36ccf /addressbook/gui/widgets
parentae2246b944b66b5fccf21e3008c2d63f38833b05 (diff)
downloadgsoc2013-evolution-96e5dc161fc6bb7ac376988c570d393a1d294e9d.tar
gsoc2013-evolution-96e5dc161fc6bb7ac376988c570d393a1d294e9d.tar.gz
gsoc2013-evolution-96e5dc161fc6bb7ac376988c570d393a1d294e9d.tar.bz2
gsoc2013-evolution-96e5dc161fc6bb7ac376988c570d393a1d294e9d.tar.lz
gsoc2013-evolution-96e5dc161fc6bb7ac376988c570d393a1d294e9d.tar.xz
gsoc2013-evolution-96e5dc161fc6bb7ac376988c570d393a1d294e9d.tar.zst
gsoc2013-evolution-96e5dc161fc6bb7ac376988c570d393a1d294e9d.zip
** Fix for bug #426829.
2007-04-09 simon.zheng <simon.zheng@sun.com> ** Fix for bug #426829. * gui/contact-editor/eab-editor.c: (eab_editor_confirm_delete): * gui/widgets/eab-contact-display.c: (render_contact): To avoid printing a NULL char point, add statements to check the return result of et_email_location() and e_contact_get(). svn path=/trunk/; revision=33398
Diffstat (limited to 'addressbook/gui/widgets')
-rw-r--r--addressbook/gui/widgets/eab-contact-display.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/addressbook/gui/widgets/eab-contact-display.c b/addressbook/gui/widgets/eab-contact-display.c
index ddade470a2..311af261be 100644
--- a/addressbook/gui/widgets/eab-contact-display.c
+++ b/addressbook/gui/widgets/eab-contact-display.c
@@ -513,7 +513,8 @@ render_contact (GtkHTMLStream *html_stream, EContact *contact)
for (l = email_list, al=email_attr_list; l && al; l = l->next, al = al->next) {
#ifdef HANDLE_MAILTO_INTERNALLY
char *html = e_text_to_html (l->data, 0);
- g_string_append_printf (accum, "%s<a href=\"internal-mailto:%d\">%s</a> <font color=" HEADER_COLOR ">(%s)</font>", nl, email_num, html, get_email_location ((EVCardAttribute *) al->data));
+ char *attr_str = get_email_location ((EVCardAttribute *) al->data);
+ g_string_append_printf (accum, "%s<a href=\"internal-mailto:%d\">%s</a> <font color=" HEADER_COLOR ">(%s)</font>", nl, email_num, html, attr_str?attr_str:"");
email_num ++;
g_free (html);
nl = "<br>";