From 508aee66f947c5b9689262f9d523aeafa8d51ba2 Mon Sep 17 00:00:00 2001 From: Srinivasa Ragavan Date: Mon, 10 Sep 2007 10:57:03 +0000 Subject: ** Fix for bug #471791 svn path=/trunk/; revision=34214 --- e-util/e-pilot-map.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'e-util/e-pilot-map.c') diff --git a/e-util/e-pilot-map.c b/e-util/e-pilot-map.c index dc3ae07670..6587368773 100644 --- a/e-util/e-pilot-map.c +++ b/e-util/e-pilot-map.c @@ -138,8 +138,8 @@ map_sax_start_element (void *data, const xmlChar *name, attrs = ++val; } - g_assert (uid != NULL); - g_assert (pid != 0 || archived); + g_return_if_fail (uid != NULL); + g_return_if_fail (pid != 0 || archived); real_e_pilot_map_insert (map, pid, uid, archived, FALSE); } @@ -259,7 +259,7 @@ e_pilot_map_remove_by_pid (EPilotMap *map, guint32 pid) g_hash_table_lookup_extended (map->uid_map, pnode->uid, &ukey, (gpointer *)&unode); - g_assert (unode != NULL); + g_return_if_fail (unode != NULL); g_hash_table_remove (map->pid_map, &pid); g_hash_table_remove (map->uid_map, pnode->uid); @@ -339,7 +339,7 @@ e_pilot_map_lookup_uid (EPilotMap *map, guint32 pid, gboolean touch) EPilotMapUidNode *unode = NULL; unode = g_hash_table_lookup (map->uid_map, pnode->uid); - g_assert (unode != NULL); + g_return_val_if_fail (unode != NULL, NULL); unode->touched = TRUE; pnode->touched = TRUE; -- cgit v1.2.3