Patch from Dave Yearke <yearke@eng.buffalo.edu>:
- testHTML.c: fix core dump on Solaris 2.x systems
- HTMLparser.c: fix segfault if ctxt->sax->characters() is NULL
- result/HTML/*.sax: previous bug fix lead to new results
Daniel
diff --git a/testHTML.c b/testHTML.c
index 85e2e82..721f0e5 100644
--- a/testHTML.c
+++ b/testHTML.c
@@ -146,7 +146,8 @@
     /* xmlDtdPtr externalSubset; */
 
     fprintf(stdout, "SAX.internalSubset(%s, %s, %s)\n",
-            name, ExternalID, SystemID);
+            name, (ExternalID == NULL) ? "(null)" : ExternalID,
+                  (SystemID   == NULL) ? "(null)" : SystemID);
 
 /***********
     if ((ExternalID != NULL) || (SystemID != NULL)) {
@@ -372,7 +373,7 @@
     if (atts != NULL) {
         for (i = 0;(atts[i] != NULL);i++) {
 	    fprintf(stdout, ", %s='", atts[i++]);
-	    fprintf(stdout, "%s'", atts[i]);
+	    fprintf(stdout, "%s'", (atts[i] == NULL) ? "(null)" : atts[i]);
 	}
     }
     fprintf(stdout, ")\n");