]> mj.ucw.cz Git - libucw.git/commitdiff
XML: Fixed reporting of characters via the PULL interface.
authorPavel Charvat <pavel.charvat@netcentrum.cz>
Tue, 22 Apr 2008 12:06:08 +0000 (14:06 +0200)
committerPavel Charvat <pavel.charvat@netcentrum.cz>
Tue, 22 Apr 2008 12:06:08 +0000 (14:06 +0200)
sherlock/xml/parse.c

index ef957bc6911632bb4553e63b8ca4f3cb4955255e..0d62112a4c86004a7cc5082e8e578f6e34834484 100644 (file)
@@ -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;