summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Nelson <wabz@pidgin.im>2009-03-12 11:02:02 (GMT)
committerRichard Nelson <wabz@pidgin.im>2009-03-12 11:02:02 (GMT)
commitedf5f3f65d6d2220b669b44b2f05a5db0a7af486 (patch)
tree3a11a12a42b3cf5e5244710b8a12bcf8d1939b59
parent357d758c94ef5564411c7b3aefed874029172ffc (diff)
downloadpidgin-edf5f3f65d6d2220b669b44b2f05a5db0a7af486.tar.gz
pidgin-edf5f3f65d6d2220b669b44b2f05a5db0a7af486.tar.xz
fix a crash when changing to away without a status message
-rw-r--r--libpurple/protocols/oscar/oscar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpurple/protocols/oscar/oscar.c b/libpurple/protocols/oscar/oscar.c
index 4b8534e..2511111 100644
--- a/libpurple/protocols/oscar/oscar.c
+++ b/libpurple/protocols/oscar/oscar.c
@@ -4789,7 +4789,7 @@ oscar_set_info_and_status(PurpleAccount *account, gboolean setinfo, const char *
status_html = purple_status_get_attr_string(status, "message");
- if (primitive == PURPLE_STATUS_AVAILABLE || primitive == PURPLE_STATUS_INVISIBLE)
+ if (status_html == NULL || primitive == PURPLE_STATUS_AVAILABLE || primitive == PURPLE_STATUS_INVISIBLE)
{
/* This is needed for us to un-set any previous away message. */
away = g_strdup("");