From 0a362c9453f46464d6f227b410f12ff271af16e4 Mon Sep 17 00:00:00 2001 From: Srinivasa Ragavan Date: Sun, 2 Sep 2007 18:51:21 +0000 Subject: ** Fix for bug #471791 (Move away from assert to g_ret) svn path=/trunk/; revision=34157 --- addressbook/printing/e-contact-print.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addressbook/printing/e-contact-print.c') diff --git a/addressbook/printing/e-contact-print.c b/addressbook/printing/e-contact-print.c index a49501ba8b..b8b1aee6f2 100644 --- a/addressbook/printing/e-contact-print.c +++ b/addressbook/printing/e-contact-print.c @@ -310,7 +310,7 @@ contact_compare (EContact *contact1, EContact *contact2) field1 = e_contact_get_const (contact1, E_CONTACT_UID); field2 = e_contact_get_const (contact2, E_CONTACT_UID); - g_assert (field1 != NULL && field2 != NULL); + g_return_val_if_fail (field1 != NULL && field2 != NULL, (field1 != NULL) ? -1 : 1); return strcmp (field1, field2); } -- cgit