From: handa Date: Fri, 26 Jan 2007 05:24:23 +0000 (+0000) Subject: (mdatabase__update): Check mdatabase__dir_list from X-Git-Tag: FLT-base~142 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=8c5d245f0dd0d0c922cc0cae0209f2011394cdba;p=m17n%2Fm17n-lib.git (mdatabase__update): Check mdatabase__dir_list from the tail. --- 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;