diff console/gntblist.c @ 14630:275c84b1b2a4

[gaim-migrate @ 17376] Patch from Richard Nelson (wabz) to fix a crash. This is probably what Luke is getting. I had it fixed in my local tree, not sure why I hadn't committed. committer: Tailor Script <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Tue, 26 Sep 2006 23:02:40 +0000
parents f1f1dcb26d89
children dbcdef1ab5af
line wrap: on
line diff
--- a/console/gntblist.c	Tue Sep 26 22:54:24 2006 +0000
+++ b/console/gntblist.c	Tue Sep 26 23:02:40 2006 +0000
@@ -1647,7 +1647,7 @@
 		GaimConnection *gc = gaim_account_get_connection(account);
 		GaimPlugin *prpl;
 		
-		if (!GAIM_CONNECTION_IS_CONNECTED(gc))
+		if (!gc || !GAIM_CONNECTION_IS_CONNECTED(gc))
 			continue;
 		prpl = gc->prpl;