aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2001-08-16 00:59:27 +0800
committerMichael Zucci <zucchi@src.gnome.org>2001-08-16 00:59:27 +0800
commit5a6a6fcc06b9db9ef2c0f09db64aa32dff47cbd9 (patch)
treecb6d138975899164d79841954bb3cb29a8aa0a43
parentc551f36c151201753ca928f15eaaddde5e7bbb1d (diff)
downloadgsoc2013-evolution-5a6a6fcc06b9db9ef2c0f09db64aa32dff47cbd9.tar.gz
gsoc2013-evolution-5a6a6fcc06b9db9ef2c0f09db64aa32dff47cbd9.tar.zst
gsoc2013-evolution-5a6a6fcc06b9db9ef2c0f09db64aa32dff47cbd9.zip
Force open of internal data before using it.
2001-08-16 Not Zed <NotZed@Ximian.com> * dumpindex.c (main): Force open of internal data before using it. svn path=/trunk/; revision=12056
-rw-r--r--libibex/ChangeLog2
-rw-r--r--libibex/dumpindex.c3
2 files changed, 5 insertions, 0 deletions
diff --git a/libibex/ChangeLog b/libibex/ChangeLog
index a47320019f..16677bbca4 100644
--- a/libibex/ChangeLog
+++ b/libibex/ChangeLog
@@ -1,5 +1,7 @@
2001-08-16 Not Zed <NotZed@Ximian.com>
+ * dumpindex.c (main): Force open of internal data before using it.
+
* ibex_block.c (ibex_use): Use a next pointer so we keep the list
intact as we scan it.
diff --git a/libibex/dumpindex.c b/libibex/dumpindex.c
index 410a7083d6..5f8cacd603 100644
--- a/libibex/dumpindex.c
+++ b/libibex/dumpindex.c
@@ -51,6 +51,9 @@ int main(int argc, char **argv)
return 1;
}
+ /* force real-open of the ibex internals */
+ ibex_contains_name(ib, "dummy");
+
ibex_hash_dump(ib->words->wordindex);
ibex_hash_dump(ib->words->nameindex);