changeset 21:8ba601b1949a

[gaim-migrate @ 30] More obscure bugfixes. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Fri, 24 Mar 2000 03:14:30 +0000
parents 2c150f36612b
children e23783a60a7f
files src/buddy_chat.c
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/buddy_chat.c	Fri Mar 24 02:43:30 2000 +0000
+++ b/src/buddy_chat.c	Fri Mar 24 03:14:30 2000 +0000
@@ -607,13 +607,18 @@
 
 void setup_buddy_chats()
 {
-        GList *list = GTK_TREE(buddies)->children;
+        GList *list;
         struct chat_room *cr;
         GList *crs = chat_rooms;
         GtkWidget *w;
         GtkWidget *item;
         GtkWidget *tree;
 
+	if (buddies == NULL)
+		return;
+
+	list = GTK_TREE(buddies)->children;
+
         while(list) {
                 w = (GtkWidget *)list->data;
                 if (!strcmp(GTK_LABEL(GTK_BIN(w)->child)->label, "Buddy Chat")) {