diff options
Diffstat (limited to 'protocols/jabber')
| -rw-r--r-- | protocols/jabber/conference.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/protocols/jabber/conference.c b/protocols/jabber/conference.c index 7435358a..bcf05b3c 100644 --- a/protocols/jabber/conference.c +++ b/protocols/jabber/conference.c @@ -358,7 +358,7 @@ void jabber_chat_pkt_message(struct im_connection *ic, struct jabber_buddy *bud,  	char *s;  	if (subject && chat) { -		s = bud ? strchr(bud->ext_jid, '/') : NULL; +		s = (bud && bud->ext_jid) ? strchr(bud->ext_jid, '/') : NULL;  		if (s) {  			*s = 0;  		} @@ -418,7 +418,7 @@ void jabber_chat_pkt_message(struct im_connection *ic, struct jabber_buddy *bud,  		return;  	}  	if (body && body->text_len > 0) { -		s = strchr(bud->ext_jid, '/'); +		s = (bud->ext_jid) ? strchr(bud->ext_jid, '/') : NULL;  		if (s) {  			*s = 0;  		} | 
