1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-21 14:53:44 +03:00

another small patch from Mark Vadoc Daniel

* testHTML.c: another small patch from Mark Vadoc
Daniel
This commit is contained in:
Daniel Veillard
2004-01-13 20:51:03 +00:00
parent 87247e8740
commit c2c0d14217
2 changed files with 8 additions and 0 deletions

View File

@@ -1,3 +1,7 @@
Tue Jan 13 21:50:05 CET 2004 Daniel Veillard <daniel@veillard.com>
* testHTML.c: another small patch from Mark Vadoc
Tue Jan 13 21:39:58 CET 2004 Daniel Veillard <daniel@veillard.com> Tue Jan 13 21:39:58 CET 2004 Daniel Veillard <daniel@veillard.com>
* HTMLparser.c relaxng.c testRelax.c testSchemas.c: applied * HTMLparser.c relaxng.c testRelax.c testSchemas.c: applied

View File

@@ -709,6 +709,7 @@ parseAndPrintFile(char *filename) {
/* /*
* build an HTML tree from a string; * build an HTML tree from a string;
*/ */
#ifdef LIBXML_PUSH_ENABLED
if (push) { if (push) {
FILE *f; FILE *f;
@@ -736,6 +737,9 @@ parseAndPrintFile(char *filename) {
} else { } else {
doc = htmlReadFile(filename, NULL, options); doc = htmlReadFile(filename, NULL, options);
} }
#else
doc = htmlReadFile(filename,NULL,options);
#endif
if (doc == NULL) { if (doc == NULL) {
xmlGenericError(xmlGenericErrorContext, xmlGenericError(xmlGenericErrorContext,
"Could not parse %s\n", filename); "Could not parse %s\n", filename);