aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--addressbook/ChangeLog5
-rw-r--r--addressbook/backend/ebook/e-card.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 44f431d532..ef1843a2c2 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,5 +1,10 @@
2001-06-30 Jon Trowbridge <trow@ximian.com>
+ * backend/ebook/e-card.c (e_card_evolution_list): Check args.
+ Somewhere in the code (somewhere in the minicard stuff) this can
+ be called with a NULL arg, which was causing crashes.
+ (e_card_evolution_list_show_addresses): Check args.
+
* backend/ebook/e-destination.c (build_field): I was accidentally
comparing characters and strings here, and didn't see the compiler
warning. Fixed.
diff --git a/addressbook/backend/ebook/e-card.c b/addressbook/backend/ebook/e-card.c
index a1698aaa4e..88bc029ca2 100644
--- a/addressbook/backend/ebook/e-card.c
+++ b/addressbook/backend/ebook/e-card.c
@@ -4011,11 +4011,13 @@ e_card_send (ECard *card, ECardDisposition disposition)
gboolean
e_card_evolution_list (ECard *card)
{
+ g_return_val_if_fail (card && E_IS_CARD (card), FALSE);
return card->list;
}
gboolean
e_card_evolution_list_show_addresses (ECard *card)
{
+ g_return_val_if_fail (card && E_IS_CARD (card), FALSE);
return card->list_show_addresses;
}