From: handa Date: Mon, 16 Oct 2006 12:43:48 +0000 (+0000) Subject: (mdatabase__update): Fix the way to get db_info. X-Git-Tag: REL-1-3-4~32 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=fe7018324690210bda3344c63ed304e12d6652eb;p=m17n%2Fm17n-lib.git (mdatabase__update): Fix the way to get db_info. --- diff --git a/src/database.c b/src/database.c index 614fb9f..93cc5ff 100644 --- a/src/database.c +++ b/src/database.c @@ -804,11 +804,13 @@ mdatabase__update (void) p2 = MPLIST_PLIST (p1); MPLIST_DO (p2, MPLIST_NEXT (p2)) { + MDatabase *mdb; MDatabaseInfo *db_info; p3 = MPLIST_PLIST (p2); p3 = MPLIST_NEXT (p3); - db_info = MPLIST_VAL (p3); + mdb = MPLIST_VAL (p3); + db_info = mdb->extra_info; if (db_info->status == MDB_STATUS_AUTO) db_info->status = MDB_STATUS_DISABLED; }