aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/oscar/rxhandlers.c
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/oscar/rxhandlers.c')
-rw-r--r--protocols/oscar/rxhandlers.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/protocols/oscar/rxhandlers.c b/protocols/oscar/rxhandlers.c
index 6ff106b2..0f1bb3d7 100644
--- a/protocols/oscar/rxhandlers.c
+++ b/protocols/oscar/rxhandlers.c
@@ -234,14 +234,8 @@ int aim_conn_addhandler(aim_session_t *sess, aim_conn_t *conn, guint16 family, g
{
struct aim_rxcblist_s *newcb;
- if (!conn) {
- return -1;
- }
-
- if (checkdisallowed(family, type)) {
- g_assert(0);
- return -1;
- }
+ g_return_val_if_fail(conn, -1);
+ g_return_val_if_fail(checkdisallowed(family, type), -1);
if (!(newcb = (struct aim_rxcblist_s *) g_new0(struct aim_rxcblist_s, 1))) {
return -1;