Mercurial > pidgin.yaz
changeset 14863:be6b841cd1f4
[gaim-migrate @ 17632]
Fixes https://launchpad.net/bugs/68240 (I can't import list of gadu-gadu).
committer: Tailor Script <tailor@pidgin.im>
author | Bartoz Oler <bartosz@pidgin.im> |
---|---|
date | Tue, 31 Oct 2006 00:37:34 +0000 |
parents | d6a98c79ef84 |
children | b8a4f82bc24e |
files | libgaim/protocols/gg/buddylist.c |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libgaim/protocols/gg/buddylist.c Mon Oct 30 22:45:28 2006 +0000 +++ b/libgaim/protocols/gg/buddylist.c Tue Oct 31 00:37:34 2006 +0000 @@ -106,6 +106,16 @@ show = charset_convert(data_tbl[3], "CP1250", "UTF-8"); name = data_tbl[6]; + if (NULL == name || '\0' == *name) { + gaim_debug_warning("gg", + "Something is wrong on line %d of the buddylist. Skipping.\n", + i + 1); + continue; + } + + if (NULL == show || '\0' == *show) { + show = g_strdup(name); + } gaim_debug_info("gg", "got buddy: name=%s show=%s\n", name, show);