projects
/
m17n
/
m17n-lib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c52d30b
)
(mdatabase__update): Check mdatabase__dir_list from
author
handa
<handa>
Fri, 26 Jan 2007 05:24:23 +0000
(
05:24
+0000)
committer
handa
<handa>
Fri, 26 Jan 2007 05:24:23 +0000
(
05:24
+0000)
the tail.
src/database.c
patch
|
blob
|
history
diff --git
a/src/database.c
b/src/database.c
index
f9b338c
..
d9349e9
100644
(file)
--- 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;