diff src/protocols/sametime/meanwhile/srvc_aware.c @ 11291:57fccea36e36

[gaim-migrate @ 13491] Gaim should pretty much never call g_assert. If any of these changes are in your code, you should try to take a look at the change and make sure Gaim won't crash after the function g_return_if_fails. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 18 Aug 2005 03:14:29 +0000
parents 3ef77720e577
children 0110fc7c6a8a
line wrap: on
line diff
--- a/src/protocols/sametime/meanwhile/srvc_aware.c	Thu Aug 18 01:35:14 2005 +0000
+++ b/src/protocols/sametime/meanwhile/srvc_aware.c	Thu Aug 18 03:14:29 2005 +0000
@@ -141,8 +141,8 @@
 
 static struct aware_entry *aware_find(struct mwServiceAware *srvc,
 				      struct mwAwareIdBlock *srch) {
-  g_assert(srvc != NULL);
-  g_assert(srvc->entries != NULL);
+  g_return_val_if_fail(srvc != NULL, NULL);
+  g_return_val_if_fail(srvc->entries != NULL, NULL);
   g_return_val_if_fail(srch != NULL, NULL);
   
   return g_hash_table_lookup(srvc->entries, srch);