1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-20 03:52:25 +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

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