diff options
author | Thomas White <taw@bitwiz.org.uk> | 2011-01-27 11:33:56 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:12 +0100 |
commit | 1392b2c51078619eb3072acd452eb5995b019716 (patch) | |
tree | 64f15737b490444ceaf037add3c80dffe4525a15 | |
parent | bef149e2f81dbbef96cd5cd5bd0db053447025b2 (diff) |
Don't cleanup indexing if none was prepared
-rw-r--r-- | src/index.c | 2 |
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 ) { |