small enhancement to prevent trying to print strings with null pointers

* testSAX.c: small enhancement to prevent trying to print
  strings with null pointers (caused "make tests" errors on
  HP-UX)
diff --git a/testSAX.c b/testSAX.c
index 538c8d7..accd2f3 100644
--- a/testSAX.c
+++ b/testSAX.c
@@ -437,6 +437,14 @@
 entityDeclDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *name, int type,
           const xmlChar *publicId, const xmlChar *systemId, xmlChar *content)
 {
+const xmlChar *nullstr = BAD_CAST "(null)";
+    /* not all libraries handle printing null pointers nicely */
+    if (publicId == NULL)
+        publicId = nullstr;
+    if (systemId == NULL)
+        systemId = nullstr;
+    if (content == NULL)
+        content = (xmlChar *)nullstr;
     callbacks++;
     if (quiet)
 	return;
@@ -524,6 +532,14 @@
 		   const xmlChar *publicId, const xmlChar *systemId,
 		   const xmlChar *notationName)
 {
+const xmlChar *nullstr = BAD_CAST "(null)";
+
+    if (publicId == NULL)
+        publicId = nullstr;
+    if (systemId == NULL)
+        systemId = nullstr;
+    if (notationName == NULL)
+        notationName = nullstr;
     callbacks++;
     if (quiet)
 	return;