Mercurial > pidgin
diff src/account.c @ 11076:75be3005640e
[gaim-migrate @ 13086]
I'd left off a null and it caused a crash. Also, I changed the
thing to use vargs, since it will need to use that in the future
anyway, I think.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sat, 09 Jul 2005 20:00:07 +0000 |
parents | 812b285aeccd |
children | 1c5398ccbeb0 |
line wrap: on
line diff
--- a/src/account.c Sat Jul 09 19:36:24 2005 +0000 +++ b/src/account.c Sat Jul 09 20:00:07 2005 +0000 @@ -407,15 +407,12 @@ /* Get the active/inactive state */ data = xmlnode_get_attrib(node, "active"); - if (data != NULL) - { - if (strcasecmp(data, "true") == 0) - active = TRUE; - else if (strcasecmp(data, "false") == 0) - active = FALSE; - else - return; - } + if (data == NULL) + return; + if (strcasecmp(data, "true") == 0) + active = TRUE; + else if (strcasecmp(data, "false") == 0) + active = FALSE; else return; @@ -427,8 +424,7 @@ /* QQQ: Need to read attributes into a vargs */ /* QQQ: This needs to do a better job of adding attributes and stuff */ - /* Use gaim_account_set_status_vargs(); */ - gaim_account_set_status(account, type, active); + gaim_account_set_status_vargs(account, type, active, NULL); } static void