From: Marc Cromme Date: Mon, 16 Apr 2007 13:54:55 +0000 (+0000) Subject: added X-Git-Tag: PAZPAR2.1.0.0~290 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=7eed289231a792736f9a9b500e74778e32376155;p=pazpar2-moved-to-github.git added assert(service); assert(service->num_metadata); assert(service->num_sortkeys); --- 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')