summaryrefslogtreecommitdiff
path: root/src/xml.c
diff options
context:
space:
mode:
authorUlf Jasper <>2014-10-28 21:33:12 +0100
committerUlf Jasper <ulf.jasper@web.de>2014-10-28 21:33:12 +0100
commit45f0de5a7123f5f50ba858902b240b1cdb604e44 (patch)
tree4898de9cc006d9672f5baccb081296f5289fba5f /src/xml.c
parent48ec7450255fe77ea17191c607d87e4335e17c8a (diff)
downloademacs-45f0de5a7123f5f50ba858902b240b1cdb604e44.tar.gz
xml.c:parse_region: Do not forget the first document child.
* src/xml.c (parse_region): Do not forget the first document child. * test/automated/libxml-tests.el: New file.
Diffstat (limited to 'src/xml.c')
-rw-r--r--src/xml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xml.c b/src/xml.c
index feabe00efab..7e99beb1d05 100644
--- a/src/xml.c
+++ b/src/xml.c
@@ -216,7 +216,7 @@ parse_region (Lisp_Object start, Lisp_Object end, Lisp_Object base_url, int html
{
/* If the document is just comments, then this should get us the
nodes anyway. */
- xmlNode *n = doc->children->next;
+ xmlNode *n = doc->children;
Lisp_Object r = Qnil;
while (n) {