recover from non-existant DTD's
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 10 Nov 2005 19:02:39 +0000 (19:02 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 10 Nov 2005 19:02:39 +0000 (19:02 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@1997 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/apachemods/mod_xmlbuilder.c

index f88f6af..18762dc 100644 (file)
@@ -272,7 +272,7 @@ void xmlBuilderAddDtd( const char* sysId, xmlBuilderContext* context ) {
        snprintf( buf, len, "%s/%s/%s", context->config->baseDir, locale, sysId );
 
        xmlDtdPtr dtd = xmlParseDTD(NULL, buf);
-
+       if(!dtd) return;
 
        /* cycle through entities and push them into the entity hash */
        xmlNodePtr node = dtd->children;