mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-26 00:37:43 +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:
committed by
Nick Wellnhofer
parent
2f2bf4b2ca
commit
6c91dd9495
@@ -880,6 +880,8 @@ internalSubsetDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *name,
|
|||||||
callbacks++;
|
callbacks++;
|
||||||
if (quiet)
|
if (quiet)
|
||||||
return;
|
return;
|
||||||
|
if (name == NULL)
|
||||||
|
name = BAD_CAST "(null)";
|
||||||
fprintf(SAXdebug, "SAX.internalSubset(%s,", name);
|
fprintf(SAXdebug, "SAX.internalSubset(%s,", name);
|
||||||
if (ExternalID == NULL)
|
if (ExternalID == NULL)
|
||||||
fprintf(SAXdebug, " ,");
|
fprintf(SAXdebug, " ,");
|
||||||
|
|||||||
Reference in New Issue
Block a user