diff -r 68e4fe2cf8ef -r e27e92c22036 src/protocols/jabber/presence.c --- a/src/protocols/jabber/presence.c Tue Mar 07 07:55:42 2006 +0000 +++ b/src/protocols/jabber/presence.c Tue Mar 07 08:02:32 2006 +0000 @@ -609,12 +609,12 @@ { const char *status_id = NULL; - *state = JABBER_BUDDY_STATE_UNKNOWN; - *msg = NULL; - *priority = 0; + if(state) *state = JABBER_BUDDY_STATE_UNKNOWN; + if(msg) *msg = NULL; + if(priority) *priority = 0; if(!status) { - *state = JABBER_BUDDY_STATE_UNAVAILABLE; + if(state) *state = JABBER_BUDDY_STATE_UNAVAILABLE; } else { if(state) { status_id = gaim_status_get_id(status); @@ -631,5 +631,4 @@ if(priority) *priority = gaim_status_get_attr_int(status, "priority"); } - }