changeset 1217:1e7625916fa7

[gaim-migrate @ 1227] um committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Fri, 08 Dec 2000 08:17:38 +0000
parents 64d67198c458
children 1c4185a78183
files libfaim/aim_snac.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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]);