diff src/eventloop.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 62fc579810f4
children
line wrap: on
line diff
--- a/src/eventloop.c	Thu Aug 18 01:35:14 2005 +0000
+++ b/src/eventloop.c	Thu Aug 18 03:14:29 2005 +0000
@@ -67,7 +67,7 @@
 GaimEventLoopUiOps *
 gaim_eventloop_get_ui_ops(void)
 {
-	g_assert(eventloop_ui_ops != NULL);
+	g_return_val_if_fail(eventloop_ui_ops != NULL, NULL);
 
 	return eventloop_ui_ops;
 }