Changeset 20e830b
- Timestamp:
- 2009-11-19T14:58:30Z (15 years ago)
- Branches:
- master
- Children:
- 08e5bb2
- Parents:
- 76c85b4c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/jabber_util.c
r76c85b4c r20e830b 463 463 464 464 head = g_hash_table_lookup( jd->buddies, jid ); 465 bud = head->next? head->next : head;465 bud = ( head && head->next ) ? head->next : head; 466 466 467 467 g_free( jid ); … … 546 546 { 547 547 struct jabber_data *jd = ic->proto_data; 548 struct jabber_buddy * head, *bud, *prev, *bi;548 struct jabber_buddy *bud, *prev, *bi; 549 549 char *s, *full_jid; 550 550 … … 554 554 *s = 0; 555 555 556 if( ( head = g_hash_table_lookup( jd->buddies, full_jid ) ) ) 557 { 558 bud = head->next ? head->next : head; 556 if( ( bud = g_hash_table_lookup( jd->buddies, full_jid ) ) ) 557 { 558 if( bud->next ) 559 bud = bud->next; 559 560 560 561 /* If there's only one item in the list (and if the resource
Note: See TracChangeset
for help on using the changeset viewer.