From: Adam Dickmeiss Date: Tue, 5 Dec 2000 14:44:58 +0000 (+0000) Subject: Fixed minor bug that could cause zmbol to break it data were emitted X-Git-Tag: ZEBRA.1.1~43 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=df117f4652b6999cf689cf5e2e65f8d8541ab4b0;p=idzebra-moved-to-github.git Fixed minor bug that could cause zmbol to break it data were emitted with not parent tags. --- diff --git a/recctrl/recgrs.c b/recctrl/recgrs.c index aaa7cba..03fb6d5 100644 --- a/recctrl/recgrs.c +++ b/recctrl/recgrs.c @@ -4,7 +4,11 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: recgrs.c,v $ - * Revision 1.37 2000-12-05 12:22:53 adam + * Revision 1.38 2000-12-05 14:44:58 adam + * Fixed minor bug that could cause zmbol to break it data were emitted + * with not parent tags. + * + * Revision 1.37 2000/12/05 12:22:53 adam * Termlist source implemented (so that we can index values of XML/SGML * attributes). * @@ -444,10 +448,9 @@ static int dumpkeys(data1_node *n, struct recExtractCtrl *p, int level) printf("NULL\n"); } - assert(par); - - index_tag (par, n, p, level, &wrd); - } + if (par) + index_tag (par, n, p, level, &wrd); + } if (p->flagShowRecords && n->which == DATA1N_root) { printf("%*s-------------\n\n", level * 4, "");