src/protocols/jabber/presence.c

changeset 13443
e27e92c22036
parent 13385
6fb64ae23761
child 13445
a67047ddc5c1
--- 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");
 	}
-
 }

mercurial