X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=sherlock%2Fxml%2Fparse.c;h=0d62112a4c86004a7cc5082e8e578f6e34834484;hb=ab3b3f178718c0ae7b5738e987e350537574d2e6;hp=ef957bc6911632bb4553e63b8ca4f3cb4955255e;hpb=7ff16aadb50619ba67d2fe3fa0b7a958b86c3162;p=libucw.git 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;