diff options
| author | Wilmer van der Gaast <wilmer@gaast.net> | 2006-12-03 18:57:17 +0100 | 
|---|---|---|
| committer | Wilmer van der Gaast <wilmer@gaast.net> | 2006-12-03 18:57:17 +0100 | 
| commit | cb6a6f437f4fb1be3f35b61f2c26e78ecacaedde (patch) | |
| tree | fd01d7d6392ec4364dd7352e7abfdf01cc95e2f8 /protocols/jabber | |
| parent | 25984f203b18ce36aabae431797266e44e9a3ba0 (diff) | |
Fixed use of already free()d variable.
Diffstat (limited to 'protocols/jabber')
| -rw-r--r-- | protocols/jabber/jabber_util.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/protocols/jabber/jabber_util.c b/protocols/jabber/jabber_util.c index 5184a37e..4ca0c1fc 100644 --- a/protocols/jabber/jabber_util.c +++ b/protocols/jabber/jabber_util.c @@ -390,8 +390,8 @@ struct jabber_buddy *jabber_buddy_by_jid( struct gaim_connection *gc, char *jid_  		if( bud == NULL )  			/* No match. Create it now? */ -			return ( ( flags & GET_BUDDY_CREAT ) && find_buddy( gc, jid ) ) ? -			           jabber_buddy_add( gc, jid ) : NULL; +			return ( ( flags & GET_BUDDY_CREAT ) && find_buddy( gc, jid_ ) ) ? +			           jabber_buddy_add( gc, jid_ ) : NULL;  		else if( bud->resource && ( flags & GET_BUDDY_EXACT ) )  			/* We want an exact match, so in thise case there shouldn't be a /resource. */  			return NULL; | 
