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:
@ -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");
|
||||
|
Reference in New Issue
Block a user