Mercurial > pidgin
changeset 1522:31c0850f9340
[gaim-migrate @ 1532]
this should fix a segfault or two
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Thu, 01 Mar 2001 10:05:18 +0000 |
parents | ba83e9e2fd9b |
children | 8b2d855067cc |
files | plugins/jabber/jabber.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/jabber/jabber.c Thu Mar 01 02:29:54 2001 +0000 +++ b/plugins/jabber/jabber.c Thu Mar 01 10:05:18 2001 +0000 @@ -700,13 +700,15 @@ struct buddy *b; char *groupname, *buddyname; - groupname = xmlnode_get_data(xmlnode_get_firstchild(g)); if (who->user == NULL) { /* FIXME: transport */ g = xmlnode_get_nextsibling(g); continue; } buddyname = g_strdup_printf("%s@%s", who->user, who->server); + groupname = xmlnode_get_data(xmlnode_get_firstchild(g)); + if (groupname == NULL) + groupname = "Buddies"; if (!(b = find_buddy(GJ_GC(j), buddyname))) { debug_printf("adding buddy: %s\n", buddyname); b =