Mercurial > pidgin
diff plugins/jabber/jabber.c @ 1611:9ff8cac19352
[gaim-migrate @ 1621]
i forget if this is safe or not.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Sat, 17 Mar 2001 13:10:00 +0000 |
parents | 497a074fa1c8 |
children | 12bd198b6721 |
line wrap: on
line diff
--- a/plugins/jabber/jabber.c Sat Mar 17 13:02:57 2001 +0000 +++ b/plugins/jabber/jabber.c Sat Mar 17 13:10:00 2001 +0000 @@ -607,11 +607,12 @@ if (!cnv) { resources = b->proto_data; res = who->resource; - while (resources) { - if (!strcmp(res, resources->data)) - break; - resources = resources->next; - } + if (res) + while (resources) { + if (!strcmp(res, resources->data)) + break; + resources = resources->next; + } if (type && (strcasecmp(type, "unavailable") == 0)) { g_free(resources->data);