Mercurial > pidgin.yaz
changeset 2697:7759f914a009
[gaim-migrate @ 2710]
maybe this will fix some things
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Thu, 08 Nov 2001 09:44:36 +0000 |
parents | c17afaccaf09 |
children | e80f4b4f840f |
files | src/protocols/yahoo/yahoo.c |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/yahoo/yahoo.c Thu Nov 08 08:20:43 2001 +0000 +++ b/src/protocols/yahoo/yahoo.c Thu Nov 08 09:44:36 2001 +0000 @@ -417,8 +417,14 @@ lines = g_strsplit(pair->value, "\n", -1); for (tmp = lines; *tmp; tmp++) { split = g_strsplit(*tmp, ":", 2); + if (!split) + continue; + if (!split[1]) { + g_strfreev(split); + continue; + } buddies = g_strsplit(split[1], ",", -1); - for (bud = buddies; *bud; bud++) + for (bud = buddies; bud && *bud; bud++) if (!find_buddy(gc, *bud)) { add_buddy(gc, split[0], *bud, *bud); export = TRUE;