Commit 6c91dd94 authored by Daniel Richard G.'s avatar Daniel Richard G. Committed by Nick Wellnhofer

Don't call printf with NULL string in runtest.c

Avoids undefined behavior causing problems on HP-UX and Solaris.

Closes #78.
parent 2f2bf4b2
......@@ -880,6 +880,8 @@ internalSubsetDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *name,
callbacks++;
if (quiet)
return;
if (name == NULL)
name = BAD_CAST "(null)";
fprintf(SAXdebug, "SAX.internalSubset(%s,", name);
if (ExternalID == NULL)
fprintf(SAXdebug, " ,");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment