Mercurial > pidgin.yaz
comparison src/protocols/jabber/roster.c @ 7316:5b408a3fc6f4
[gaim-migrate @ 7900]
this _might_ fix empty group names (it at least shouldn't crash)
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Wed, 22 Oct 2003 16:38:37 +0000 |
parents | dd4b4a187171 |
children | 85cd2e71bff7 |
comparison
equal
deleted
inserted
replaced
7315:7e5f9d7e9291 | 7316:5b408a3fc6f4 |
---|---|
191 remove_gaim_buddies(js, jid); | 191 remove_gaim_buddies(js, jid); |
192 } else { | 192 } else { |
193 GSList *groups = NULL; | 193 GSList *groups = NULL; |
194 | 194 |
195 for(group = item->child; group; group = group->next) { | 195 for(group = item->child; group; group = group->next) { |
196 char *group_name; | |
196 if(group->type != NODE_TYPE_TAG || strcmp(group->name, "group")) | 197 if(group->type != NODE_TYPE_TAG || strcmp(group->name, "group")) |
197 continue; | 198 continue; |
198 groups = g_slist_append(groups, | 199 |
199 xmlnode_get_data(group)); | 200 if(!(group_name = xmlnode_get_data(group))) |
201 group_name = g_strdup(""); | |
202 groups = g_slist_append(groups, group_name); | |
200 } | 203 } |
201 add_gaim_buddies_in_groups(js, jid, name, groups); | 204 add_gaim_buddies_in_groups(js, jid, name, groups); |
202 } | 205 } |
203 } | 206 } |
204 | 207 |