From 675b94a4f554fba568b7960b3ae336f3fe1de0d1 Mon Sep 17 00:00:00 2001 From: Jon Trowbridge Date: Sun, 1 Jul 2001 00:44:31 +0000 Subject: Check args. Somewhere in the code (somewhere in the minicard stuff) this 2001-06-30 Jon Trowbridge * 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 --- addressbook/backend/ebook/e-card.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'addressbook/backend/ebook') 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; } -- cgit v1.2.3