comparison src/protocols/jabber/roster.c @ 7482:9b69fdd148fc

[gaim-migrate @ 8095] don't segfault when aliasing the first copy of a jabber buddy in your buddy list committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Wed, 12 Nov 2003 01:22:45 +0000
parents 126fceb88bec
children c42d1532faab
comparison
equal deleted inserted replaced
7481:5f0f9d7fba6a 7482:9b69fdd148fc
273 } 273 }
274 274
275 void jabber_roster_alias_change(GaimConnection *gc, const char *name, const char *alias) 275 void jabber_roster_alias_change(GaimConnection *gc, const char *name, const char *alias)
276 { 276 {
277 GaimBuddy *b = gaim_find_buddy(gc->account, name); 277 GaimBuddy *b = gaim_find_buddy(gc->account, name);
278 278 char *a;
279 gaim_blist_alias_buddy(b, alias); 279
280 a = g_strdup(alias);
281 gaim_blist_alias_buddy(b, a);
282 g_free(a);
280 283
281 jabber_roster_update(gc->proto_data, name, NULL); 284 jabber_roster_update(gc->proto_data, name, NULL);
282 } 285 }
283 286
284 void jabber_roster_group_change(GaimConnection *gc, const char *name, 287 void jabber_roster_group_change(GaimConnection *gc, const char *name,