changeset 26178:37a3f30a8d80

fix a crash when changing to away without a status message
author Richard Nelson <wabz@pidgin.im>
date Thu, 12 Mar 2009 11:02:02 +0000
parents 85bb3539d302
children 413b445a6018 a4a5825fb1bb
files libpurple/protocols/oscar/oscar.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/oscar/oscar.c	Wed Mar 11 04:39:56 2009 +0000
+++ b/libpurple/protocols/oscar/oscar.c	Thu Mar 12 11:02:02 2009 +0000
@@ -4789,7 +4789,7 @@
 
 		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("");