aboutsummaryrefslogtreecommitdiff
path: root/src/index.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2011-01-27 11:33:56 +0100
committerThomas White <taw@physics.org>2012-02-22 15:27:12 +0100
commit1392b2c51078619eb3072acd452eb5995b019716 (patch)
tree64f15737b490444ceaf037add3c80dffe4525a15 /src/index.c
parentbef149e2f81dbbef96cd5cd5bd0db053447025b2 (diff)
Don't cleanup indexing if none was prepared
Diffstat (limited to 'src/index.c')
-rw-r--r--src/index.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/index.c b/src/index.c
index 6f9b5278..57399c61 100644
--- a/src/index.c
+++ b/src/index.c
@@ -84,6 +84,8 @@ void cleanup_indexing(IndexingPrivate **priv)
{
int n = 0;
+ if ( priv == NULL ) return; /* Nothing to do */
+
while ( priv[n] != NULL ) {
switch ( priv[n]->indm ) {