1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-03-20 18:50:08 +03:00

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

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

Closes #78.
This commit is contained in:
Daniel Richard G 2019-08-01 15:01:47 +02:00 committed by Nick Wellnhofer
parent 2f2bf4b2ca
commit 6c91dd9495

View File

@ -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, " ,");