summaryrefslogtreecommitdiff
path: root/catalog.c
diff options
context:
space:
mode:
authorIgor Zlatkovic <igor@src.gnome.org>2002-10-31 16:15:29 +0000
committerIgor Zlatkovic <igor@src.gnome.org>2002-10-31 16:15:29 +0000
commitee1494ae67c8f8b49345c300a12b1dc902d1af8e (patch)
tree6e2031add3fcc569d089ab2dec64e5fa908e14d6 /catalog.c
parent9fdd8f3f304b19c1350fc92493217387cbb38a9f (diff)
downloadlibxml2-ee1494ae67c8f8b49345c300a12b1dc902d1af8e.tar.gz
fixed bug #96963, reverted to old behaviour of xmlLoadCatalogs
Diffstat (limited to 'catalog.c')
-rw-r--r--catalog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/catalog.c b/catalog.c
index 40236a2e..0d30cb34 100644
--- a/catalog.c
+++ b/catalog.c
@@ -2917,7 +2917,7 @@ xmlLoadCatalog(const char *filename)
/**
* xmlLoadCatalogs:
- * @paths: a space-separated list of catalog files.
+ * @paths: a list of directories separated by a colon or a space.
*
* Load the catalogs and makes their definitions effective for the default
* external entity loader.
@@ -2938,7 +2938,7 @@ xmlLoadCatalogs(const char *pathss) {
while (IS_BLANK(*cur)) cur++;
if (*cur != 0) {
paths = cur;
- while ((*cur != 0) && (!IS_BLANK(*cur)))
+ while ((*cur != 0) && (*cur != ':') && (!IS_BLANK(*cur)))
cur++;
path = xmlStrndup((const xmlChar *)paths, cur - paths);
if (path != NULL) {