# HG changeset patch # User Richard Nelson # Date 1236855722 0 # Node ID 37a3f30a8d80839e1ad70e0e34450eecba17c14a # Parent 85bb3539d3023748d5b4fc830910e74afe63cba0 fix a crash when changing to away without a status message diff -r 85bb3539d302 -r 37a3f30a8d80 libpurple/protocols/oscar/oscar.c --- 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("");