Check that the string we are checking for xml-ness is non-NULL.
2001-10-20 Jon Trowbridge <trow@ximian.com> * printing/e-contact-print.c (e_contact_print_card): Check that the string we are checking for xml-ness is non-NULL. svn path=/trunk/; revision=13830
This commit is contained in:

committed by
Jon Trowbridge

parent
cbf9a7cbc1
commit
aa4fd6fd0c
@ -1,5 +1,8 @@
|
||||
2001-10-20 Jon Trowbridge <trow@ximian.com>
|
||||
|
||||
* printing/e-contact-print.c (e_contact_print_card): Check that the
|
||||
string we are checking for xml-ness is non-NULL.
|
||||
|
||||
* backend/ebook/e-destination.c (e_destination_importv): Filter
|
||||
out empty destinations. (also Bug #13036)
|
||||
|
||||
|
@ -478,7 +478,7 @@ e_contact_print_card (ECardSimple *simple, EContactPrintContext *ctxt)
|
||||
char *string;
|
||||
string = e_card_simple_get(simple, field);
|
||||
|
||||
if (!strncmp (string, "<?xml", 4)) {
|
||||
if (string && !strncmp (string, "<?xml", 4)) {
|
||||
EDestination *dest = e_destination_import (string);
|
||||
if (dest != NULL) {
|
||||
gchar *new_string = g_strdup (e_destination_get_address (dest));
|
||||
|
Reference in New Issue
Block a user