X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Frecgrs.c;h=4d621efddbfad14eac5cd30373a21f17584d0b06;hb=ca8c7208a371bcfb79c846dfec9cd7cb42ecaf92;hp=7da47f73f918caf54301057f6aa67082dfed257f;hpb=396e9aaedfbed7534e329b42475cd7abe2fd3814;p=idzebra-moved-to-github.git diff --git a/index/recgrs.c b/index/recgrs.c index 7da47f7..4d621ef 100644 --- a/index/recgrs.c +++ b/index/recgrs.c @@ -1,4 +1,4 @@ -/* $Id: recgrs.c,v 1.6 2006-09-28 18:38:47 adam Exp $ +/* $Id: recgrs.c,v 1.7 2006-09-29 10:02:47 adam Exp $ Copyright (C) 1995-2006 Index Data ApS @@ -418,11 +418,8 @@ data1_termlist *xpath_termlist_by_tagpath(char *tagpath, data1_node *n) #if OPTIMIZE_MELM /* mark this and following ones with same regexp */ - for (xpe1 = xpe; xpe1; xpe1 = xpe1->next) - { - if (!strcmp(xpe1->regexp, xpe->regexp)) - xpe1->match_state = ok; - } + for (xpe1 = xpe; xpe1; xpe1 = xpe1->match_next) + xpe1->match_state = ok; #endif } assert (ok == 0 || ok == 1);