diff options
author | William M. Brack <wbrack@src.gnome.org> | 2003-10-19 10:01:59 +0000 |
---|---|---|
committer | William M. Brack <wbrack@src.gnome.org> | 2003-10-19 10:01:59 +0000 |
commit | 9ca682f5274819e420553417eb4e778ee31d99d1 (patch) | |
tree | c1e85d67ce41586d86115542972fa264ae9e4c8e /tree.c | |
parent | 76e95df05556c9610b564b14cf578c8f9e34c9c1 (diff) | |
download | libxml2-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |