Mercurial > pidgin
changeset 29057:29bafbfca469
jabber: Oops, crashing bad.
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Mon, 15 Feb 2010 06:04:51 +0000 |
parents | af4bb8ccc7f5 |
children | 86204988c522 |
files | libpurple/protocols/jabber/jutil.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/jutil.c Mon Feb 15 05:41:15 2010 +0000 +++ b/libpurple/protocols/jabber/jutil.c Mon Feb 15 06:04:51 2010 +0000 @@ -698,7 +698,7 @@ g_return_val_if_fail(id != NULL, JABBER_BUDDY_STATE_UNKNOWN); for (i = 0; i < G_N_ELEMENTS(jabber_statuses); ++i) - if (g_str_equal(id, jabber_statuses[i].show)) + if (jabber_statuses[i].show && g_str_equal(id, jabber_statuses[i].show)) return jabber_statuses[i].state; purple_debug_warning("jabber", "Invalid value of presence <show/> "