# HG changeset patch # User Stu Tomlinson # Date 1177818549 0 # Node ID 2a12915d957afac0f039b5451ea6a8c4998205fa # Parent 56cc78d3d04f57a56677531c076a815bbe0dd586 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 in them, which is odd). Who am I to disagree? diff -r 56cc78d3d04f -r 2a12915d957a pidgin/gtkstatusbox.c --- a/pidgin/gtkstatusbox.c Sun Apr 29 02:14:43 2007 +0000 +++ b/pidgin/gtkstatusbox.c Sun Apr 29 03:49:09 2007 +0000 @@ -2225,7 +2225,8 @@ PurpleSavedStatusSub *sub = purple_savedstatus_get_substatus(ss, acct); if (sub) { const PurpleStatusType *sub_type = purple_savedstatus_substatus_get_type(sub); - if (!strcmp(purple_status_type_get_id(sub_type), + const char *subtype_status_id = purple_status_type_get_id(sub_type); + if (subtype_status_id && !strcmp(subtype_status_id, purple_status_type_get_id(acct_status_type))) found = TRUE; }