aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
authorHans Petter Jansson <hpj@ximian.com>2004-04-29 15:14:22 +0800
committerHans Petter <hansp@src.gnome.org>2004-04-29 15:14:22 +0800
commit734904653f1497f3589a9b09225d30942237db7d (patch)
treef96326af857c6ea0e92dffc6369fdf3e24845a91 /addressbook
parentdb2c17f6606cf0bdb9329f7e03dee6a7e59517a5 (diff)
downloadgsoc2013-evolution-734904653f1497f3589a9b09225d30942237db7d.tar.gz
gsoc2013-evolution-734904653f1497f3589a9b09225d30942237db7d.tar.zst
gsoc2013-evolution-734904653f1497f3589a9b09225d30942237db7d.zip
Don't dereference the file_as pointer if it turns out to be NULL.
2004-04-29 Hans Petter Jansson <hpj@ximian.com> * printing/e-contact-print.c: Don't dereference the file_as pointer if it turns out to be NULL. svn path=/trunk/; revision=25682
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/ChangeLog5
-rw-r--r--addressbook/printing/e-contact-print.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 92874daf88..ceed9409d8 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-29 Hans Petter Jansson <hpj@ximian.com>
+
+ * printing/e-contact-print.c: Don't dereference the file_as pointer
+ if it turns out to be NULL.
+
2004-04-28 Jeffrey Stedfast <fejj@ximian.com>
* gui/component/addressbook-migrate.c: We need a migration dialog
diff --git a/addressbook/printing/e-contact-print.c b/addressbook/printing/e-contact-print.c
index 3b2dde2c18..dbbb394a3b 100644
--- a/addressbook/printing/e-contact-print.c
+++ b/addressbook/printing/e-contact-print.c
@@ -554,7 +554,7 @@ complete_sequence(EBookView *book_view, EBookViewStatus status, EContactPrintCon
e_contact_print_letter_heading(ctxt, ctxt->character);
}
g_free (letter_str);
- ctxt->last_char_on_page = toupper(*file_as);
+ ctxt->last_char_on_page = file_as ? toupper (*file_as) : ' ';
if ( ctxt->last_char_on_page < ctxt->first_char_on_page )
ctxt->first_char_on_page = ctxt->last_char_on_page;
e_contact_print_contact(contact, ctxt);