summaryrefslogtreecommitdiff
path: root/tree.c
diff options
context:
space:
mode:
authorWilliam M. Brack <wbrack@src.gnome.org>2003-10-19 10:01:59 +0000
committerWilliam M. Brack <wbrack@src.gnome.org>2003-10-19 10:01:59 +0000
commit9ca682f5274819e420553417eb4e778ee31d99d1 (patch)
treec1e85d67ce41586d86115542972fa264ae9e4c8e /tree.c
parent76e95df05556c9610b564b14cf578c8f9e34c9c1 (diff)
downloadlibxml2-9ca682f5274819e420553417eb4e778ee31d99d1.tar.gz
fixed segfault when input file not present changed output formatting of
* xmlIO.c: fixed segfault when input file not present * tree.c: changed output formatting of XML_CDATA_SECTION (bug 120917)
Diffstat (limited to 'tree.c')
-rw-r--r--tree.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tree.c b/tree.c
index b612ffd8..24044e02 100644
--- a/tree.c
+++ b/tree.c
@@ -7481,7 +7481,8 @@ xmlNodeDumpOutputInternal(xmlOutputBufferPtr buf, xmlDocPtr doc,
if (format == 1) {
tmp = cur->children;
while (tmp != NULL) {
- if ((tmp->type == XML_TEXT_NODE) ||
+ if ((tmp->type == XML_TEXT_NODE) ||
+ (tmp->type == XML_CDATA_SECTION_NODE) ||
(tmp->type == XML_ENTITY_REF_NODE)) {
format = 0;
break;