changeset 22407:c59489e56735

Fix a crash in the zephyr normalize function that I added when gc is null (happens when reading in accounts.xml). My bad.
author Mark Doliner <mark@kingant.net>
date Mon, 03 Mar 2008 08:50:27 +0000
parents 1d3783f659c2
children 791c9545846b
files libpurple/protocols/zephyr/zephyr.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/zephyr/zephyr.c	Mon Mar 03 08:40:39 2008 +0000
+++ b/libpurple/protocols/zephyr/zephyr.c	Mon Mar 03 08:50:27 2008 +0000
@@ -2235,6 +2235,9 @@
 	char *tmp;
 
 	gc = purple_account_get_connection(account);
+	if (gc == NULL)
+		return NULL;
+
 	tmp = local_zephyr_normalize(gc->proto_data, who);
 
 	if (strlen(tmp) >= sizeof(buf)) {