From: Pavel Charvat Date: Tue, 22 Apr 2008 12:06:08 +0000 (+0200) Subject: XML: Fixed reporting of characters via the PULL interface. X-Git-Tag: holmes-import~449^2~10 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=ab3b3f178718c0ae7b5738e987e350537574d2e6;p=libucw.git XML: Fixed reporting of characters via the PULL interface. --- diff --git a/sherlock/xml/parse.c b/sherlock/xml/parse.c index ef957bc6..0d62112a 100644 --- a/sherlock/xml/parse.c +++ b/sherlock/xml/parse.c @@ -423,7 +423,7 @@ xml_flush_chars(struct xml_context *ctx) { if ((ctx->flags & XML_REPORT_CHARS) && ctx->h_block && (rlen = xml_report_chars(ctx, &rtext))) ctx->h_block(ctx, rtext, rlen); - if (!(ctx->flags & XML_ALLOC_CHARS) && (!(ctx->flags & XML_REPORT_CHARS) || !ctx->h_chars)) + if (!(ctx->flags & XML_ALLOC_CHARS) && !(ctx->flags & XML_REPORT_CHARS) && !ctx->h_chars) { mp_restore(ctx->pool, &ctx->chars_state); return 0;