added a --convert option to xmlcatalog to convert SGML ones to the XML
* include/libxml/catalog.h catalog.c xmlcatalog.c: added a
--convert option to xmlcatalog to convert SGML ones to
the XML syntax.
* xmllint.c: small cleanup for $SGML_CATALOG_FILES support.
Daniel
diff --git a/xmllint.c b/xmllint.c
index c04776e..944be45 100644
--- a/xmllint.c
+++ b/xmllint.c
@@ -975,7 +975,11 @@
const char *catal;
catal = getenv("SGML_CATALOG_FILES");
- xmlLoadCatalogs(catal);
+ if (catal != NULL) {
+ xmlLoadCatalogs(catal);
+ } else {
+ fprintf(stderr, "Variable $SGML_CATALOG_FILES not set\n");
+ }
}
}
#endif