aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/printing
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/printing
parentdb2c17f6606cf0bdb9329f7e03dee6a7e59517a5 (diff)
downloadgsoc2013-evolution-734904653f1497f3589a9b09225d30942237db7d.tar
gsoc2013-evolution-734904653f1497f3589a9b09225d30942237db7d.tar.gz
gsoc2013-evolution-734904653f1497f3589a9b09225d30942237db7d.tar.bz2
gsoc2013-evolution-734904653f1497f3589a9b09225d30942237db7d.tar.lz
gsoc2013-evolution-734904653f1497f3589a9b09225d30942237db7d.tar.xz
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/printing')
-rw-r--r--addressbook/printing/e-contact-print.c2
1 files changed, 1 insertions, 1 deletions
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);