comparison pidgin/gtkstatusbox.c @ 16619:2a12915d957a

Fedora bug/patch https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=234399 says this fixes the crashes with 'corrupt' status.xml's (which, btw, appear to have substatuses with <state/> in them, which is odd). Who am I to disagree?
author Stu Tomlinson <stu@nosnilmot.com>
date Sun, 29 Apr 2007 03:49:09 +0000
parents fb633ba3fb1e
children 174d73c90036
comparison
equal deleted inserted replaced
16617:56cc78d3d04f 16619:2a12915d957a
2223 for(tmp = active_accts; tmp != NULL; tmp = tmp->next) { 2223 for(tmp = active_accts; tmp != NULL; tmp = tmp->next) {
2224 PurpleAccount *acct = tmp->data; 2224 PurpleAccount *acct = tmp->data;
2225 PurpleSavedStatusSub *sub = purple_savedstatus_get_substatus(ss, acct); 2225 PurpleSavedStatusSub *sub = purple_savedstatus_get_substatus(ss, acct);
2226 if (sub) { 2226 if (sub) {
2227 const PurpleStatusType *sub_type = purple_savedstatus_substatus_get_type(sub); 2227 const PurpleStatusType *sub_type = purple_savedstatus_substatus_get_type(sub);
2228 if (!strcmp(purple_status_type_get_id(sub_type), 2228 const char *subtype_status_id = purple_status_type_get_id(sub_type);
2229 if (subtype_status_id && !strcmp(subtype_status_id,
2229 purple_status_type_get_id(acct_status_type))) 2230 purple_status_type_get_id(acct_status_type)))
2230 found = TRUE; 2231 found = TRUE;
2231 } 2232 }
2232 } 2233 }
2233 if (!found) 2234 if (!found)