1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-29 11:41:22 +03:00

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
This commit is contained in:
Daniel Veillard
2000-08-14 15:13:33 +00:00
parent 0310929cc4
commit 1255ab7780
6 changed files with 3352 additions and 3 deletions

View File

@ -146,7 +146,8 @@ internalSubsetDebug(void *ctx, const xmlChar *name,
/* 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 @@ startElementDebug(void *ctx, const xmlChar *name, const xmlChar **atts)
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");