aboutsummaryrefslogtreecommitdiffstats
path: root/debugXML.c
diff options
context:
space:
mode:
authorWilliam M. Brack <wbrack@src.gnome.org>2004-12-17 21:38:09 +0000
committerWilliam M. Brack <wbrack@src.gnome.org>2004-12-17 21:38:09 +0000
commit5a9c1fdd407b9771bac3dec266645603828e4fa4 (patch)
tree3a88721b9a11755a43495ac56d34159345f3d78a /debugXML.c
parent91b955c1af5636a0765201c32180cfc67ee426a8 (diff)
downloadandroid_external_libxml2-5a9c1fdd407b9771bac3dec266645603828e4fa4.tar.gz
android_external_libxml2-5a9c1fdd407b9771bac3dec266645603828e4fa4.tar.bz2
android_external_libxml2-5a9c1fdd407b9771bac3dec266645603828e4fa4.zip
changed maintainer-clean dependency with suggestion from Crispin Flowerday
* doc/Makefile.am: changed maintainer-clean dependency with suggestion from Crispin Flowerday (bug #157634) * debugXML.c: fixed crash when ATTRIBUTE or DOCUMENT nodes were specified with debugDumpNode (bug #160621)
Diffstat (limited to 'debugXML.c')
-rw-r--r--debugXML.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/debugXML.c b/debugXML.c
index 1b8fd708..a014f009 100644
--- a/debugXML.c
+++ b/debugXML.c
@@ -894,7 +894,8 @@ xmlCtxtDumpOneNode(xmlDebugCtxtPtr ctxt, xmlNodePtr node)
if (!ctxt->check)
xmlCtxtDumpSpaces(ctxt);
fprintf(ctxt->output, "Error, ATTRIBUTE found here\n");
- break;
+ xmlCtxtGenericNodeCheck(ctxt, node);
+ return;
case XML_TEXT_NODE:
if (!ctxt->check) {
xmlCtxtDumpSpaces(ctxt);
@@ -940,8 +941,9 @@ xmlCtxtDumpOneNode(xmlDebugCtxtPtr ctxt, xmlNodePtr node)
if (!ctxt->check) {
xmlCtxtDumpSpaces(ctxt);
}
- fprintf(ctxt->output, "PBM: DOCUMENT found here\n");
- break;
+ fprintf(ctxt->output, "Error, DOCUMENT found here\n");
+ xmlCtxtGenericNodeCheck(ctxt, node);
+ return;
case XML_DOCUMENT_TYPE_NODE:
if (!ctxt->check) {
xmlCtxtDumpSpaces(ctxt);