Mercurial > pidgin
diff libpurple/protocols/zephyr/zephyr.c @ 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 | 99c6ed4c9cbe |
children | 718a9c287839 efaecb71baad |
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)) {