From 8c5d245f0dd0d0c922cc0cae0209f2011394cdba Mon Sep 17 00:00:00 2001 From: handa Date: Fri, 26 Jan 2007 05:24:23 +0000 Subject: [PATCH] (mdatabase__update): Check mdatabase__dir_list from the tail. --- src/database.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/database.c b/src/database.c index f9b338c..d9349e9 100644 --- a/src/database.c +++ b/src/database.c @@ -866,9 +866,13 @@ mdatabase__update (void) } } - MPLIST_DO (plist, mdatabase__dir_list) + plist = mplist (); + MPLIST_DO (p0, mdatabase__dir_list) + mplist_push (plist, MPLIST_KEY (p0), MPLIST_VAL (p0)); + + while (! MPLIST_TAIL_P (plist)) { - MDatabaseInfo *dir_info = MPLIST_VAL (plist); + MDatabaseInfo *dir_info = mplist_pop (plist); MPlist *pl, *p; int i; FILE *fp; -- 1.7.10.4