diff options
author | Not Zed <NotZed@Ximian.com> | 2001-08-15 22:41:57 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2001-08-15 22:41:57 +0800 |
commit | 95cad50c053fda877e2a640d7301c31704b4c889 (patch) | |
tree | fdce28d788469b575a3398f091dcc1235fdd3911 /libibex/testindex.c | |
parent | 580a9b1815c0def8b58d2fc7b155cc4dfdb41c86 (diff) | |
download | gsoc2013-evolution-95cad50c053fda877e2a640d7301c31704b4c889.tar.gz gsoc2013-evolution-95cad50c053fda877e2a640d7301c31704b4c889.tar.zst gsoc2013-evolution-95cad50c053fda877e2a640d7301c31704b4c889.zip |
Use a next pointer so we keep the list intact as we scan it.
2001-08-16 Not Zed <NotZed@Ximian.com>
* ibex_block.c (ibex_use): Use a next pointer so we keep the list
intact as we scan it.
svn path=/trunk/; revision=12049
Diffstat (limited to 'libibex/testindex.c')
-rw-r--r-- | libibex/testindex.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libibex/testindex.c b/libibex/testindex.c index acfa892360..064ff1b7ac 100644 --- a/libibex/testindex.c +++ b/libibex/testindex.c @@ -223,7 +223,7 @@ int main(int argc, char **argv) /* random name */ name = words->pdata[word % words->len]; - if (j%1000 == 0) { + if (j%1000 == 0 && j>0) { IBEX_LOCK(ib); word_index_mem_dump_info(ib->words); IBEX_UNLOCK(ib); @@ -284,6 +284,7 @@ int main(int argc, char **argv) ibex_close(ib); ib = ibex_open("test.ibex", O_RDWR|O_CREAT, 0600); + ibex_contains_name(ib, name); IBEX_LOCK(ib); word_index_mem_dump_info(ib->words); IBEX_UNLOCK(ib); |