Mercurial > pidgin
changeset 9886:694c80fc7c2e
[gaim-migrate @ 10771]
This hopefully fixes some bug that I can't reproduce where there's a status
update on yahoo and the name is NULL or nonutf8.
committer: Tailor Script <tailor@pidgin.im>
author | Tim Ringenbach <marv@pidgin.im> |
---|---|
date | Thu, 26 Aug 2004 22:10:43 +0000 |
parents | 4d3a61dcb942 |
children | 18a787538ad2 |
files | src/protocols/yahoo/yahoo.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/yahoo/yahoo.c Thu Aug 26 13:32:50 2004 +0000 +++ b/src/protocols/yahoo/yahoo.c Thu Aug 26 22:10:43 2004 +0000 @@ -373,7 +373,10 @@ break; case 7: /* the current buddy */ name = pair->value; - f = yahoo_friend_find_or_new(gc, name); + if (name && g_utf8_validate(name, -1, NULL)) + f = yahoo_friend_find_or_new(gc, name); + else + f = name = NULL; break; case 10: /* state */ if (!f)