Mercurial > pidgin.yaz
changeset 1616:8b684f420841
[gaim-migrate @ 1626]
thanks to drbobbeaty :) things should work much better now.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Mon, 19 Mar 2001 14:54:19 +0000 |
parents | 5a2fd3f2a1d0 |
children | f30f719e5933 |
files | plugins/yay/rxhandlers.c |
diffstat | 1 files changed, 7 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/yay/rxhandlers.c Mon Mar 19 10:33:33 2001 +0000 +++ b/plugins/yay/rxhandlers.c Mon Mar 19 14:54:19 2001 +0000 @@ -31,6 +31,7 @@ int state = 0; for (it = str_array; *it; it++) { + if (!**it) continue; if (!strncmp(*it, "ERROR", strlen("ERROR"))) { yahoo_close(session, conn); if (session->callbacks[YAHOO_HANDLE_BADPASSWORD].function) @@ -86,10 +87,12 @@ if (state == 1) { struct yahoo_group *grp = g_new0(struct yahoo_group, 1); char *end = strchr(*it, ':'); - grp->name = g_strndup(*it, end - *it); - end++; - grp->buddies = g_strsplit(end, ",", 1024); - session->groups = g_list_append(session->groups, grp); + if (end) { + grp->name = g_strndup(*it, end - *it); + end++; + grp->buddies = g_strsplit(end, ",", 1024); + session->groups = g_list_append(session->groups, grp); + } } else if (state == 2) { session->ignored = g_list_append(session->ignored, g_strdup(*it)); } else if (state == 3) {