# HG changeset patch # User Eric Warmenhoven # Date 976263458 0 # Node ID 1e7625916fa75b3fe8024a7d827f24654e5b831a # Parent 64d67198c458b68efdfec3b256760b8844848259 [gaim-migrate @ 1227] um committer: Tailor Script diff -r 64d67198c458 -r 1e7625916fa7 libfaim/aim_snac.c --- a/libfaim/aim_snac.c Fri Dec 08 08:03:33 2000 +0000 +++ b/libfaim/aim_snac.c Fri Dec 08 08:17:38 2000 +0000 @@ -109,11 +109,12 @@ faim_internal int aim_cleansnacs(struct aim_session_t *sess, int maxage) { - struct aim_snac_t *cur, *next, *prev = NULL; - time_t curtime; int i; for (i = 0; i < FAIM_SNAC_HASH_SIZE; i++) { + struct aim_snac_t *cur = NULL, *next = NULL, *prev = NULL; + time_t curtime; + faim_mutex_lock(&sess->snac_hash_locks[i]); if (!sess->snac_hash[i]) { faim_mutex_unlock(&sess->snac_hash_locks[i]);