diff src/buddy_chat.c @ 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 2846a03bda67
children b9e90a914e20
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")) {