aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
authorJon Trowbridge <trow@ximian.com>2001-10-21 06:55:59 +0800
committerJon Trowbridge <trow@src.gnome.org>2001-10-21 06:55:59 +0800
commitaa4fd6fd0cc17b936c38b5a4acf80cafa56022b9 (patch)
tree05af3f1f4681c24be334b53c5cf38ec41355372b /addressbook
parentcbf9a7cbc16d2b11fe8717aa71c20b9b26a0ecc5 (diff)
downloadgsoc2013-evolution-aa4fd6fd0cc17b936c38b5a4acf80cafa56022b9.tar
gsoc2013-evolution-aa4fd6fd0cc17b936c38b5a4acf80cafa56022b9.tar.gz
gsoc2013-evolution-aa4fd6fd0cc17b936c38b5a4acf80cafa56022b9.tar.bz2
gsoc2013-evolution-aa4fd6fd0cc17b936c38b5a4acf80cafa56022b9.tar.lz
gsoc2013-evolution-aa4fd6fd0cc17b936c38b5a4acf80cafa56022b9.tar.xz
gsoc2013-evolution-aa4fd6fd0cc17b936c38b5a4acf80cafa56022b9.tar.zst
gsoc2013-evolution-aa4fd6fd0cc17b936c38b5a4acf80cafa56022b9.zip
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
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/ChangeLog3
-rw-r--r--addressbook/printing/e-contact-print.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 570898d961..2ab3e9b4b7 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -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)
diff --git a/addressbook/printing/e-contact-print.c b/addressbook/printing/e-contact-print.c
index 18e5922854..42c7718379 100644
--- a/addressbook/printing/e-contact-print.c
+++ b/addressbook/printing/e-contact-print.c
@@ -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));