changeset 4752:e4a8c7215fdf

[gaim-migrate @ 5069] This is my ugly fix for a crash bug thingy. If you want to make it less ugly, or more correct, feel free. The bug causes gaim to crash when you do not have a blist.xml file, and you have accounts in ~/.gaimrc, but those accounts do not have individual blist files (so delete ~/.gaim/blist.xml and ~/.gaim/*.blist). committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 13 Mar 2003 21:20:23 +0000
parents 169d7db6f547
children 7c1db830f57b
files src/list.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/list.c	Thu Mar 13 21:16:28 2003 +0000
+++ b/src/list.c	Thu Mar 13 21:20:23 2003 +0000
@@ -1106,6 +1106,7 @@
 	fprintf(file, "<gaim version=\"1\">\n");
 	fprintf(file, "\t<blist>\n");
 
+	if (gaimbuddylist)
 	for(group = (struct group*)gaimbuddylist->root; group; group = (struct group*)((GaimBlistNode*)group)->next) {
 		if(!exp_acct || gaim_group_on_account(group, exp_acct)) {
 			char *group_name = g_markup_escape_text(group->name, -1);