X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=index%2Fmod_grs_sgml.c;h=0a44e5b40c773440bf85dd6d8b7f1eb1073bf3a1;hp=82d719dba3d40516374b8d2e2dc3651f66ad7201;hb=aeea139423b8eaf28a4de53b3d7b2ad1f22284e7;hpb=0052fb5520062c328006dc3537f39d28e88f3579 diff --git a/index/mod_grs_sgml.c b/index/mod_grs_sgml.c index 82d719d..0a44e5b 100644 --- a/index/mod_grs_sgml.c +++ b/index/mod_grs_sgml.c @@ -40,7 +40,7 @@ int sgml_getc (void *clientData) { struct sgml_getc_info *p = (struct sgml_getc_info *) clientData; int res; - + if (p->off < p->size) return p->buf[(p->off)++]; if (p->size < p->buf_size) @@ -62,7 +62,7 @@ static data1_node *grs_read_sgml (struct grs_read_info *p) struct sgml_getc_info *sgi = (struct sgml_getc_info *) p->clientData; data1_node *node; int res; - + sgi->moffset = p->stream->tellf(p->stream); sgi->stream = p->stream; sgi->off = 0;