From ab3b3f178718c0ae7b5738e987e350537574d2e6 Mon Sep 17 00:00:00 2001 From: Pavel Charvat Date: Tue, 22 Apr 2008 14:06:08 +0200 Subject: [PATCH] XML: Fixed reporting of characters via the PULL interface. --- sherlock/xml/parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2