# HG changeset patch # User Tim Ringenbach # Date 1093558243 0 # Node ID 694c80fc7c2ef201a6ad53bfc527e4172b6bd050 # Parent 4d3a61dcb9429a6453145ae164a586b7a5708fee [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 diff -r 4d3a61dcb942 -r 694c80fc7c2e src/protocols/yahoo/yahoo.c --- 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)