aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Trowbridge <trow@ximian.com>2001-07-01 08:44:31 +0800
committerJon Trowbridge <trow@src.gnome.org>2001-07-01 08:44:31 +0800
commit675b94a4f554fba568b7960b3ae336f3fe1de0d1 (patch)
tree8e64bde30813faf1b4d08b3ba9b4dc2e3bd9c7a2
parentfe0499e1d95e45291b655f1d068430014b5971db (diff)
downloadgsoc2013-evolution-675b94a4f554fba568b7960b3ae336f3fe1de0d1.tar
gsoc2013-evolution-675b94a4f554fba568b7960b3ae336f3fe1de0d1.tar.gz
gsoc2013-evolution-675b94a4f554fba568b7960b3ae336f3fe1de0d1.tar.bz2
gsoc2013-evolution-675b94a4f554fba568b7960b3ae336f3fe1de0d1.tar.lz
gsoc2013-evolution-675b94a4f554fba568b7960b3ae336f3fe1de0d1.tar.xz
gsoc2013-evolution-675b94a4f554fba568b7960b3ae336f3fe1de0d1.tar.zst
gsoc2013-evolution-675b94a4f554fba568b7960b3ae336f3fe1de0d1.zip
Check args. Somewhere in the code (somewhere in the minicard stuff) this
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. svn path=/trunk/; revision=10644
-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;
}