From 1ee11e429c7c1e1883988a50d3c2c84dbce539e8 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 14 May 2002 20:48:47 +0000 Subject: [PATCH] Fixed x-path indexing --- recctrl/recgrs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/recctrl/recgrs.c b/recctrl/recgrs.c index 77ce0ae..2bd0901 100644 --- a/recctrl/recgrs.c +++ b/recctrl/recgrs.c @@ -2,7 +2,7 @@ * Copyright (C) 1994-2002, Index Data * All rights reserved. * - * $Id: recgrs.c,v 1.49 2002-05-13 14:13:43 adam Exp $ + * $Id: recgrs.c,v 1.50 2002-05-14 20:48:47 adam Exp $ */ #include @@ -136,7 +136,7 @@ static void index_xpath (data1_node *n, struct recExtractCtrl *p, case DATA1N_tag: for (nn = n; nn; nn = nn->parent) { - if (n->which == DATA1N_tag) + if (nn->which == DATA1N_tag) { size_t tlen = strlen(nn->u.tag.tag); if (tlen + flen > (sizeof(tag_path_full)-2)) @@ -145,7 +145,7 @@ static void index_xpath (data1_node *n, struct recExtractCtrl *p, flen += tlen; tag_path_full[flen++] = '/'; } - else if (n->which == DATA1N_root) + else if (nn->which == DATA1N_root) { size_t tlen = strlen(nn->u.root.type); if (tlen + flen > (sizeof(tag_path_full)-2)) -- 1.7.10.4