changeset 4912:a6e9cd5e853e

[gaim-migrate @ 5246] Danny Colascione (quotemstr) fixed a segfault when buddies sign on as you do. committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Sun, 30 Mar 2003 18:45:49 +0000
parents 50b77ae4cacf
children 6c02ee2b471d
files src/buddy.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/buddy.c	Sun Mar 30 13:12:50 2003 +0000
+++ b/src/buddy.c	Sun Mar 30 18:45:49 2003 +0000
@@ -1265,6 +1265,10 @@
 		gtknode->timer = 0;
 	}
 
+	/* For some reason, we're called before we have a buddy list sometimes */
+	if(!gtkblist)
+		return;
+
 	if(gtkblist->selected_node == node)
 		gtkblist->selected_node = NULL;