Mercurial > pidgin
changeset 3281:941eb47c5bd4
[gaim-migrate @ 3299]
compliant. Thanks Tim Mooney
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Thu, 30 May 2002 17:49:03 +0000 |
parents | c98c1e0281ff |
children | c32a8a97e011 |
files | src/prpl.c |
diffstat | 1 files changed, 9 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/prpl.c Wed May 29 01:44:40 2002 +0000 +++ b/src/prpl.c Thu May 30 17:49:03 2002 +0000 @@ -470,9 +470,15 @@ void set_icon_data(struct gaim_connection *gc, char *who, void *data, int len) { - struct icon_data tmp = { gc, normalize(who), NULL, 0 }; - GList *l = g_list_find_custom(icons, &tmp, find_icon_data); - struct icon_data *id = l ? l->data : NULL; + struct icon_data tmp; + GList *l; + struct icon_data *id; + tmp.gc = gc; + tmp.who = normalize(who); + tmp.data=NULL; + tmp.len = 0; + l = g_list_find_custom(icons, &tmp, find_icon_data); + id = l ? l->data : NULL; if (id) { g_free(id->data);