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