Mercurial > pidgin.yaz
changeset 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 | f018f0faddda |
children | fd5d27358418 |
files | plugins/jabber/jabber.c |
diffstat | 1 files changed, 6 insertions(+), 5 deletions(-) [+] |
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);