diff src/blist.c @ 6706:854a435d2cc3

[gaim-migrate @ 7232] Don't crash when trying to get the parent group of a buddy that is not yet in a group. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Tue, 02 Sep 2003 06:05:37 +0000
parents 0c5637b5462e
children b4943b9cea2b
line wrap: on
line diff
--- a/src/blist.c	Tue Sep 02 05:12:45 2003 +0000
+++ b/src/blist.c	Tue Sep 02 06:05:37 2003 +0000
@@ -1131,6 +1131,10 @@
 {
 	if (!buddy)
 		return NULL;
+
+	if (((GaimBlistNode *)buddy)->parent == NULL)
+		return NULL;
+
 	return (GaimGroup *)(((GaimBlistNode*)buddy)->parent->parent);
 }