Commit 9abd0532 authored by Lars Magne Ingebrigtsen's avatar Lars Magne Ingebrigtsen
Browse files

* xml.c (parse_region): Make sure we always return a tree.

parent 36881d16
2011-07-20 Lars Magne Ingebrigtsen <larsi@gnus.org>
* xml.c (parse_region): Make sure we always return a tree.
2011-07-20 HAMANO Kiyoto <khiker.mail@gmail.com>
* xml.c (parse_region): If a document contains only comments,
......
......@@ -138,7 +138,8 @@ parse_region (Lisp_Object start, Lisp_Object end, Lisp_Object base_url, int html
if (result == Qnil)
result = r;
else
result = Fnreverse (Fcons (r, result));
result = Fcons (intern ("top"),
Fcons (Qnil, Fnreverse (Fcons (r, result))));
xmlFreeDoc (doc);
xmlCleanupParser ();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment