# HG changeset patch # User Nathan Walp # Date 1071041833 0 # Node ID 5ba07997ade3bd05cf2cf6daef26d37dc57178c5 # Parent d2710b3dcc5cd6a4949333e32201548b1aab5b6c [gaim-migrate @ 8478] there's no need to keep this around committer: Tailor Script diff -r d2710b3dcc5c -r 5ba07997ade3 src/blist.c --- a/src/blist.c Wed Dec 10 06:45:32 2003 +0000 +++ b/src/blist.c Wed Dec 10 07:37:13 2003 +0000 @@ -127,8 +127,8 @@ static void gaim_contact_compute_priority_buddy(GaimContact *contact) { GaimBlistNode *bnode; + int contact_score = INT_MAX; contact->priority = NULL; - contact->score = INT_MAX; for(bnode = ((GaimBlistNode*)contact)->child; bnode; bnode = bnode->next) { GaimBuddy *buddy; @@ -149,12 +149,12 @@ score += gaim_account_get_int(buddy->account, "score", 0); - if (score < contact->score) { + if (score < contact_score) { contact->priority = buddy; - contact->score = score; + contact_score = score; } if (gaim_prefs_get_bool("/core/contact/last_match")) - if (score == contact->score) + if (score == contact_score) contact->priority = buddy; } } @@ -765,7 +765,6 @@ ((GaimBlistNode*)c)->type = GAIM_BLIST_CONTACT_NODE; c->totalsize = c->currentsize = c->online = 0; - c->score = INT_MAX; gaim_blist_node_initialize_settings((GaimBlistNode*)c); ops = gaim_blist_get_ui_ops(); diff -r d2710b3dcc5c -r 5ba07997ade3 src/blist.h --- a/src/blist.h Wed Dec 10 06:45:32 2003 +0000 +++ b/src/blist.h Wed Dec 10 07:37:13 2003 +0000 @@ -119,7 +119,6 @@ int currentsize; /**< The number of buddies in this contact corresponding to online accounts */ int online; /**< The number of buddies in this contact who are currently online */ GaimBuddy *priority; /**< The "top" buddy for this contact */ - int score; /**< The priority score. */ };