changeset 30222:1c20a2115ad4

I'm sure there's a legitimate reason I had this change locally in one of my trees waiting to be committed, but I can't remember what exactly it is (and I need to test commit emails again)
author Stu Tomlinson <stu@nosnilmot.com>
date Wed, 30 Jun 2010 01:46:42 +0000
parents 6a3aaa4e5e56
children f30a02140f74
files libpurple/connection.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/connection.c	Wed Jun 30 01:12:54 2010 +0000
+++ b/libpurple/connection.c	Wed Jun 30 01:46:42 2010 +0000
@@ -516,7 +516,8 @@
 	account = data;
 	gc = purple_account_get_connection(account);
 
-	gc->disconnect_timeout = 0;
+	if (gc != NULL)
+		gc->disconnect_timeout = 0;
 
 	password = g_strdup(purple_account_get_password(account));
 	purple_account_disconnect(account);