1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-02-01 17:47:01 +03:00

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
This commit is contained in:
Daniel Veillard 2006-02-24 20:22:27 +00:00
parent d463c99fd8
commit 27bec1461b
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -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;