From 1d471f499b0be3a3990ad252ff9c19da0462f9aa Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 15 Jan 2009 14:49:21 +0100 Subject: [PATCH] Align snippets handling of unknown register type with indexing Align snippets handling of unknown register type with indexing. This is to ensure that for unknown index types, the snippets behave the same way as indexing.. If not, snippets, can not be generated correctly. --- index/extract.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index/extract.c b/index/extract.c index 69b449c..e61483c 100644 --- a/index/extract.c +++ b/index/extract.c @@ -302,7 +302,7 @@ static void snippet_token_add(RecWord *p) { struct snip_rec_info *h = p->extractCtrl->handle; ZebraHandle zh = h->zh; - zebra_map_t zm = zebra_map_get(zh->reg->zebra_maps, p->index_type); + zebra_map_t zm = zebra_map_get_or_add(zh->reg->zebra_maps, p->index_type); if (zm) { -- 1.7.10.4