X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=recctrl%2Fmarcread.c;h=7e072aa85cc5c23af053ae984e5f229acf4257c3;hb=5e7516d00451ada59a311fad05e8e3959242cdc7;hp=c76e22d7e529824ae069869e24301f4abbecc4ee;hpb=e150e51a7e20a902e9fd2f11f00811f94f67d529;p=idzebra-moved-to-github.git diff --git a/recctrl/marcread.c b/recctrl/marcread.c index c76e22d..7e072aa 100644 --- a/recctrl/marcread.c +++ b/recctrl/marcread.c @@ -4,7 +4,13 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: marcread.c,v $ - * Revision 1.10 1999-11-30 13:48:04 adam + * Revision 1.12 2002-04-09 14:36:53 adam + * Fix XML attributes for MARC reader + * + * Revision 1.11 2000/05/15 15:32:51 adam + * Added support for 64 bit input file support. + * + * Revision 1.10 1999/11/30 13:48:04 adam * Improved installation. Updated for inclusion of YAZ header files. * * Revision 1.9 1999/06/25 13:47:25 adam @@ -103,6 +109,9 @@ data1_node *data1_mk_node_tag (data1_handle dh, NMEM mem, data1_node *parent, res->which = DATA1N_tag; res->u.tag.tag = res->lbuf; res->u.tag.get_bytes = -1; +#if DATA1_USING_XATTR + res->u.tag.attributes = 0; +#endif if (len >= DATA1_LOCALDATA) len = DATA1_LOCALDATA-1; @@ -166,7 +175,8 @@ data1_node *grs_read_marc (struct grs_read_info *p) if (read_bytes == record_length - 4) { off_t cur_offset = (*p->tellf)(p->fh); - assert (cur_offset > 26); + if (cur_offset <= 27) + return NULL; if (p->endf) (*p->endf)(p->fh, cur_offset - 1); }