commit | a76a81f63826a65b2cb0fefb7265c5ae97aadde3 | [log] [tgz] |
---|---|---|
author | Daniel Veillard <veillard@src.gnome.org> | Wed Oct 10 08:28:18 2007 +0000 |
committer | Daniel Veillard <veillard@src.gnome.org> | Wed Oct 10 08:28:18 2007 +0000 |
tree | 97d150c353ec19450a7be6e01dfe17b92e3eb1d5 | |
parent | 8e6f0fceadd78e9819898efe32fdf0b99c21c25c [diff] [blame] |
fix to avoid a crash when dumping an attribute from an XHTML document, * xmlsave.c: fix to avoid a crash when dumping an attribute from an XHTML document, patch contributed to fix #485298 Daniel svn path=/trunk/; revision=3660
diff --git a/xmlsave.c b/xmlsave.c index 30ebf49..cbabd78 100644 --- a/xmlsave.c +++ b/xmlsave.c
@@ -1254,6 +1254,10 @@ } return; } + if (cur->type == XML_ATTRIBUTE_NODE) { + xmlAttrDumpOutput(ctxt, (xmlAttrPtr) cur); + return; + } format = ctxt->format; if (format == 1) {