From c95a9e501773dedb579f26c59bfd529d0ef9c6ec Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 4 Nov 1998 16:31:32 +0000 Subject: [PATCH] Fixed bug regarding recordBytes in databaseInfo. --- index/zinfo.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/index/zinfo.c b/index/zinfo.c index 5ae198b..cb69981 100644 --- a/index/zinfo.c +++ b/index/zinfo.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: zinfo.c,v $ - * Revision 1.13 1998-11-03 10:17:09 adam + * Revision 1.14 1998-11-04 16:31:32 adam + * Fixed bug regarding recordBytes in databaseInfo. + * + * Revision 1.13 1998/11/03 10:17:09 adam * Fixed bug regarding creation of some data1 nodes for Explain records. * * Revision 1.12 1998/10/13 20:37:11 adam @@ -692,9 +695,10 @@ static void zebraExplain_readDatabase (ZebraExplainInfo zei, node_zebra = data1_search_tag (zei->dh, node_dbinfo->child, "zebraInfo"); - np = data1_search_tag (zei->dh, node_dbinfo->child, - "recordBytes"); - if (np && np->child && np->child->which == DATA1N_data) + if (node_zebra + && (np = data1_search_tag (zei->dh, node_zebra->child, + "recordBytes")) + && np->child && np->child->which == DATA1N_data) zdi->recordBytes = atoi_n (np->child->u.data.data, np->child->u.data.len); if ((np = data1_search_tag (zei->dh, node_dbinfo->child, -- 1.7.10.4