From 96e5dc161fc6bb7ac376988c570d393a1d294e9d Mon Sep 17 00:00:00 2001 From: "simon.zheng" <simon.zheng@sun.com> Date: Mon, 9 Apr 2007 02:35:11 +0000 Subject: ** 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 --- addressbook/gui/contact-editor/eab-editor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'addressbook/gui/contact-editor') diff --git a/addressbook/gui/contact-editor/eab-editor.c b/addressbook/gui/contact-editor/eab-editor.c index 29702bb23a..7beea41268 100644 --- a/addressbook/gui/contact-editor/eab-editor.c +++ b/addressbook/gui/contact-editor/eab-editor.c @@ -320,7 +320,7 @@ eab_editor_confirm_delete (GtkWindow *parent, gboolean plural, gboolean is_list, /* contact list(s) */ if (!plural) msg = g_strdup_printf (_("Are you sure you want\nto delete contact list (%s)?"), - name); + name?name:""); else msg = g_strdup (_("Are you sure you want\nto delete these contact lists?")); } @@ -328,7 +328,7 @@ eab_editor_confirm_delete (GtkWindow *parent, gboolean plural, gboolean is_list, /* contact(s) */ if (!plural) msg = g_strdup_printf (_("Are you sure you want\nto delete contact (%s)?"), - name); + name?name:""); else msg = g_strdup (_("Are you sure you want\nto delete these contacts?")); } -- cgit v1.2.3