Mercurial > pidgin
changeset 13920:73cd68ae7c43
[gaim-migrate @ 16432]
Fixes potential segfaults.
committer: Tailor Script <tailor@pidgin.im>
author | Aaron Sheldon <aaronsheldon> |
---|---|
date | Wed, 05 Jul 2006 17:41:37 +0000 |
parents | 0febf380b473 |
children | dc4db4925249 |
files | src/gtkblist.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkblist.c Wed Jul 05 00:09:56 2006 +0000 +++ b/src/gtkblist.c Wed Jul 05 17:41:37 2006 +0000 @@ -4106,14 +4106,16 @@ gboolean show = FALSE; GaimBlistNode* gnode; + g_return_if_fail(node != NULL); if (GAIM_BLIST_NODE_IS_GROUP(node)) gnode = node; - else if (GAIM_BLIST_NODE_IS_BUDDY(node)) /* maybe OR'ed with IS_CHAT? */ + else if (GAIM_BLIST_NODE_IS_BUDDY(node) || GAIM_BLIST_NODE_IS_CHAT(node)) gnode = node->parent->parent; else if (GAIM_BLIST_NODE_IS_CONTACT(node)) gnode = node->parent; - g_return_if_fail(GAIM_BLIST_NODE_IS_GROUP(gnode)); + else + return; group = (GaimGroup*)gnode;