# HG changeset patch # User Nathan Walp # Date 1062911452 0 # Node ID c4e3cc0693ab9cf19946f37d1fb46190a7755aa5 # Parent addc5c8c0df1d25a2230b32bdf3fb4fa5619d5aa [gaim-migrate @ 7312] idiot checks committer: Tailor Script diff -r addc5c8c0df1 -r c4e3cc0693ab src/blist.c --- a/src/blist.c Sun Sep 07 04:54:13 2003 +0000 +++ b/src/blist.c Sun Sep 07 05:10:52 2003 +0000 @@ -460,6 +460,10 @@ struct gaim_blist_ui_ops *ops = gaimbuddylist->ui_ops; gboolean save = FALSE; + + g_return_if_fail(chat != NULL); + g_return_if_fail(GAIM_BLIST_NODE_IS_CHAT((GaimBlistNode*)chat)); + if (!n) { if (!g) { g = gaim_group_new(_("Chats")); @@ -537,6 +541,7 @@ struct _gaim_hbuddy *hb; g_return_if_fail(buddy != NULL); + g_return_if_fail(GAIM_BLIST_NODE_IS_BUDDY((GaimBlistNode*)buddy)); bnode = (GaimBlistNode *)buddy; @@ -711,8 +716,8 @@ GaimBlistNode *gnode, *cnode, *bnode; gboolean save = FALSE; - if(!contact) - return; + g_return_if_fail(contact != NULL); + g_return_if_fail(GAIM_BLIST_NODE_IS_CONTACT((GaimBlistNode*)contact)); if(node && (GAIM_BLIST_NODE_IS_CONTACT(node) || GAIM_BLIST_NODE_IS_CHAT(node))) @@ -802,6 +807,9 @@ GaimBlistNode *gnode = (GaimBlistNode*)group; gboolean save = FALSE; + g_return_if_fail(group != NULL); + g_return_if_fail(GAIM_BLIST_NODE_IS_GROUP((GaimBlistNode*)group)); + if (!gaimbuddylist) gaimbuddylist = gaim_blist_new(); ops = gaimbuddylist->ui_ops;