summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Nelson <wabz@pidgin.im>2009-03-12 11:02:02 +0000
committerRichard Nelson <wabz@pidgin.im>2009-03-12 11:02:02 +0000
commit6b2dd8a67b12b89e28534389b32d972d4820f35a (patch)
treef1dd807c9e8f3714bb7ce033284cb14a982bbfaa
parent4716b5b4bb9e6bd889817871492d1868cdc9dee1 (diff)
downloadpidgin-6b2dd8a67b12b89e28534389b32d972d4820f35a.tar.gz
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 4b8534e8bd..2511111c65 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("");