From 7eed289231a792736f9a9b500e74778e32376155 Mon Sep 17 00:00:00 2001 From: Marc Cromme Date: Mon, 16 Apr 2007 13:54:55 +0000 Subject: [PATCH] added assert(service); assert(service->num_metadata); assert(service->num_sortkeys); --- src/relevance.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/relevance.c b/src/relevance.c index 5e1fd76..92f51a8 100644 --- a/src/relevance.c +++ b/src/relevance.c @@ -1,4 +1,4 @@ -/* $Id: relevance.c,v 1.9 2007-04-10 08:48:56 adam Exp $ +/* $Id: relevance.c,v 1.10 2007-04-16 13:54:55 marc Exp $ Copyright (c) 2006-2007, Index Data. This file is part of Pazpar2. @@ -63,6 +63,7 @@ static struct word_trie *create_word_trie_node(NMEM nmem) static void word_trie_addterm(NMEM nmem, struct word_trie *n, const char *term, int num) { + while (*term) { int c = tolower(*term); if (c < 'a' || c > 'z') -- 1.7.10.4