changeset 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 56cc78d3d04f
children 2b12b143a529
files pidgin/gtkstatusbox.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
 							}