# HG changeset patch # User Timo Sirainen # Date 1194283514 -7200 # Node ID ee9c8e0f25b7e044cd181b038f8ed0d84b104ae6 # Parent 040cbd9c4695b2ab86c65ccad621a26f242b8226 Don't crash if index has no keywords at all. diff -r 040cbd9c4695 -r ee9c8e0f25b7 src/util/idxview.c --- a/src/util/idxview.c Sun Nov 04 15:14:12 2007 +0200 +++ b/src/util/idxview.c Mon Nov 05 19:25:14 2007 +0200 @@ -128,6 +128,8 @@ unsigned int i, count; printf("-- Keywords --\n"); + if (!array_is_created(&index->map->keyword_idx_map)) + return; kw_indexes = array_get(&index->map->keyword_idx_map, &count); if (count == 0)