Commit 27bec146 authored by Daniel Veillard's avatar Daniel Veillard
Browse files

Martin Cole pointed out a bug in xmlCatalogAdd() if /etc/xml/catalog

* catalog.c: Martin Cole pointed out a bug in xmlCatalogAdd()
  if /etc/xml/catalog doesn't exist.
Daniel
parent d463c99f
Fri Feb 24 21:20:33 CET 2006 Daniel Veillard <daniel@veillard.com>
* catalog.c: Martin Cole pointed out a bug in xmlCatalogAdd()
if /etc/xml/catalog doesn't exist.
Thu Feb 23 23:06:18 CET 2006 Daniel Veillard <daniel@veillard.com>
 
* doc//*: updated the Ruby bindings links, and regenerated the
......
......@@ -1546,6 +1546,7 @@ xmlAddXMLCatalog(xmlCatalogEntryPtr catal, const xmlChar *type,
cur->next = xmlNewCatalogEntry(typ, orig, replace,
NULL, catal->prefer, NULL);
if (doregister) {
catal->type = XML_CATA_CATALOG;
cur = xmlHashLookup(xmlCatalogXMLFiles, catal->URL);
if (cur != NULL)
cur->children = catal->children;
......
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